diff options
author | Camil Staps | 2015-02-16 23:48:05 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-16 23:48:05 +0100 |
commit | d7e113be4a56fa5aac3680fb5363168f545e5bce (patch) | |
tree | 811fa270a3e3a0bc5d37abc82468a2c8eae58081 /backyard/php-api/trunk/app/Http/Controllers/Auth/AuthController.php | |
parent | Updated readme (diff) |
Added PHP API framework
Diffstat (limited to 'backyard/php-api/trunk/app/Http/Controllers/Auth/AuthController.php')
-rw-r--r-- | backyard/php-api/trunk/app/Http/Controllers/Auth/AuthController.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/backyard/php-api/trunk/app/Http/Controllers/Auth/AuthController.php b/backyard/php-api/trunk/app/Http/Controllers/Auth/AuthController.php new file mode 100644 index 0000000..4ad5c58 --- /dev/null +++ b/backyard/php-api/trunk/app/Http/Controllers/Auth/AuthController.php @@ -0,0 +1,38 @@ +<?php namespace App\Http\Controllers\Auth; + +use App\Http\Controllers\Controller; +use Illuminate\Contracts\Auth\Guard; +use Illuminate\Contracts\Auth\Registrar; +use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; + +class AuthController extends Controller { + + /* + |-------------------------------------------------------------------------- + | Registration & Login Controller + |-------------------------------------------------------------------------- + | + | This controller handles the registration of new users, as well as the + | authentication of existing users. By default, this controller uses + | a simple trait to add these behaviors. Why don't you explore it? + | + */ + + use AuthenticatesAndRegistersUsers; + + /** + * Create a new authentication controller instance. + * + * @param \Illuminate\Contracts\Auth\Guard $auth + * @param \Illuminate\Contracts\Auth\Registrar $registrar + * @return void + */ + public function __construct(Guard $auth, Registrar $registrar) + { + $this->auth = $auth; + $this->registrar = $registrar; + + $this->middleware('guest', ['except' => 'getLogout']); + } + +} |