@@ -35,7 +35,7 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | // Allow access only to administrators |
| 38 | - if (! $this->auth->user()->hasRole('Administrator')) { |
|
| 38 | + if ( ! $this->auth->user()->hasRole('Administrator')) { |
|
| 39 | 39 | abort(404, 'You are not authorized to view requested resource.'); |
| 40 | 40 | |
| 41 | 41 | return redirect()->route('homepage'); |
@@ -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 | |