@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | Route::get('/logout', ['as' => 'user.logout', 'uses' => 'Auth\LoginController@logout']); |
21 | 21 | |
22 | -Route::get('/home', function () { |
|
22 | +Route::get('/home', function() { |
|
23 | 23 | return redirect()->route('url_create'); |
24 | 24 | })->middleware('auth')->name('home'); |
25 | 25 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | Route::group([ |
30 | 30 | 'prefix' => '/admin', |
31 | 31 | 'middleware' => ['auth'], |
32 | -], function () { |
|
32 | +], function() { |
|
33 | 33 | Route::resource('links', 'Admin\LinksController', [ |
34 | 34 | 'names' => [ |
35 | 35 | 'index' => 'admin.links.index', |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | Route::group([ |
57 | 57 | 'prefix' => '/dashboard', |
58 | 58 | 'middleware' => ['auth'], |
59 | -], function () { |
|
59 | +], function() { |
|
60 | 60 | Route::resource('links', 'UserDashboardController'); |
61 | 61 | }); |
62 | 62 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function handle($request, Closure $next) |
31 | 31 | { |
32 | 32 | // If the auth user is null, redirect to home page |
33 | - if (is_null($this->auth->user()) || (! $this->auth->user()->hasRole('Administrator'))) { |
|
33 | + if (is_null($this->auth->user()) || ( ! $this->auth->user()->hasRole('Administrator'))) { |
|
34 | 34 | abort(404, 'Page not found'); |
35 | 35 | } |
36 | 36 |