diff --git a/.gitattributes b/.gitattributes index 95883dea..a8763f8e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ * text=auto *.css linguist-vendored -*.less linguist-vendored +*.scss linguist-vendored diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index 03e02a23..d492e0b3 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -6,8 +6,9 @@ use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; +use Illuminate\Foundation\Auth\Access\AuthorizesResources; class Controller extends BaseController { - use AuthorizesRequests, DispatchesJobs, ValidatesRequests; + use AuthorizesRequests, AuthorizesResources, DispatchesJobs, ValidatesRequests; } diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index f0d8083c..bffcfd9f 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -46,6 +46,7 @@ class Kernel extends HttpKernel protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, ]; diff --git a/config/queue.php b/config/queue.php index a2f3888c..d0f732a6 100644 --- a/config/queue.php +++ b/config/queue.php @@ -11,8 +11,7 @@ return [ | API, giving you convenient access to each back-end using the same | syntax for each one. Here you may set the default queue driver. | - | Supported: "null", "sync", "database", "beanstalkd", - | "sqs", "redis" + | Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis" | */ diff --git a/package.json b/package.json index 460ee907..b8363c2f 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "private": true, "devDependencies": { - "gulp": "^3.8.8" + "gulp": "^3.9.1" }, "dependencies": { - "laravel-elixir": "^4.0.0", + "laravel-elixir": "^5.0.0", "bootstrap-sass": "^3.0.0" } } diff --git a/phpunit.xml b/phpunit.xml index cc0841c1..3e884d17 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -10,12 +10,15 @@ stopOnFailure="false"> - ./tests/ + ./tests - - app/ + + ./app + + ./app/Http/routes.php +