Completed
Pull Request — master (#81)
by Johnny
03:42
created
app/Http/Middleware/SecureAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.