From f59817199207110019ba87a0655af23e60ef9527 Mon Sep 17 00:00:00 2001 From: Libern Date: Tue, 30 Aug 2016 00:25:15 +0800 Subject: [PATCH] Improved Api Base Controller --- src/Someline/Base/Api/Controllers/Controller.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Someline/Base/Api/Controllers/Controller.php b/src/Someline/Base/Api/Controllers/Controller.php index 4de41cf..c67cf0d 100644 --- a/src/Someline/Base/Api/Controllers/Controller.php +++ b/src/Someline/Base/Api/Controllers/Controller.php @@ -8,13 +8,16 @@ use Dingo\Api\Routing\Helpers; +use Illuminate\Foundation\Auth\Access\AuthorizesRequests; +use Illuminate\Foundation\Bus\DispatchesJobs; +use Illuminate\Routing\Controller as BaseController; use Someline\Api\Foundation\Validation\ValidatesRequests; -use Someline\AuthUserHelpers; -use Someline\Base\Http\Controllers\Controller as BaseController; +use Someline\Auth\AuthUserHelpers; abstract class Controller extends BaseController { - use ValidatesRequests; + use AuthorizesRequests, DispatchesJobs, ValidatesRequests; + use AuthUserHelpers; use Helpers; } \ No newline at end of file