aboutsummaryrefslogtreecommitdiff
path: root/backyard/php-api/trunk/app/Services
diff options
context:
space:
mode:
authorCamil Staps2015-02-17 00:06:02 +0100
committerCamil Staps2015-02-17 00:06:02 +0100
commit9b8d1940a1d7e8efffd76e2a3f6352d370294230 (patch)
treecd0a846a53ba61d9b27382b58947a63482f445e4 /backyard/php-api/trunk/app/Services
parentAdded PHP API framework (diff)
Changed to dingo API
Diffstat (limited to 'backyard/php-api/trunk/app/Services')
-rw-r--r--backyard/php-api/trunk/app/Services/Registrar.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/backyard/php-api/trunk/app/Services/Registrar.php b/backyard/php-api/trunk/app/Services/Registrar.php
deleted file mode 100644
index 1035468..0000000
--- a/backyard/php-api/trunk/app/Services/Registrar.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php namespace App\Services;
-
-use App\User;
-use Validator;
-use Illuminate\Contracts\Auth\Registrar as RegistrarContract;
-
-class Registrar implements RegistrarContract {
-
- /**
- * Get a validator for an incoming registration request.
- *
- * @param array $data
- * @return \Illuminate\Contracts\Validation\Validator
- */
- public function validator(array $data)
- {
- return Validator::make($data, [
- 'name' => 'required|max:255',
- 'email' => 'required|email|max:255|unique:users',
- 'password' => 'required|confirmed|min:6',
- ]);
- }
-
- /**
- * Create a new user instance after a valid registration.
- *
- * @param array $data
- * @return User
- */
- public function create(array $data)
- {
- return User::create([
- 'name' => $data['name'],
- 'email' => $data['email'],
- 'password' => bcrypt($data['password']),
- ]);
- }
-
-}