From d5f285ba8b36e4533b4b9b228285dd2c941866cc Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 16 Feb 2015 23:36:48 -0600 Subject: [PATCH] Simplify authentication. Remove service. --- app/Http/Controllers/Auth/AuthController.php | 38 ------------------- app/Providers/AppServiceProvider.php | 9 +---- app/Services/Registrar.php | 39 -------------------- 3 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 app/Http/Controllers/Auth/AuthController.php delete mode 100644 app/Services/Registrar.php diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php deleted file mode 100644 index 4ad5c58a..00000000 --- a/app/Http/Controllers/Auth/AuthController.php +++ /dev/null @@ -1,38 +0,0 @@ -auth = $auth; - $this->registrar = $registrar; - - $this->middleware('guest', ['except' => 'getLogout']); - } - -} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ff9d6f68..5790de5a 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -17,18 +17,11 @@ public function boot() /** * Register any application services. * - * This service provider is a great spot to register your various container - * bindings with the application. As you can see, we are registering our - * "Registrar" implementation here. You can add your own bindings too! - * * @return void */ public function register() { - $this->app->bind( - 'Illuminate\Contracts\Auth\Registrar', - 'App\Services\Registrar' - ); + // } } diff --git a/app/Services/Registrar.php b/app/Services/Registrar.php deleted file mode 100644 index 10354681..00000000 --- a/app/Services/Registrar.php +++ /dev/null @@ -1,39 +0,0 @@ - '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']), - ]); - } - -}