@@ -2,10 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Backpack\Base\app\Http\Controllers; |
| 4 | 4 | |
| 5 | -use App\Http\Requests; |
|
| 6 | -use Illuminate\Http\Request; |
|
| 7 | -use Prologue\Alerts\Facades\Alert as Alert; |
|
| 8 | - |
|
| 9 | 5 | class AdminController extends Controller |
| 10 | 6 | { |
| 11 | 7 | /** |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use App\Http\Controllers\Controller; |
| 6 | 6 | use Illuminate\Foundation\Auth\ResetsPasswords; |
| 7 | 7 | use Illuminate\Http\Request; |
| 8 | -use Illuminate\Mail\Message; |
|
| 9 | 8 | use Illuminate\Support\Facades\Auth; |
| 10 | 9 | use Illuminate\Support\Facades\Password; |
| 11 | 10 | |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // All BackPack routes are placed under the 'admin' prefix, to minimize possible conflicts with your application. This means your login/logout/register urls are also under the 'admin' prefix, so you can have separate logins for users and admins. |
| 4 | -Route::group(['middleware' => 'web', 'prefix' => 'admin'], function () { |
|
| 4 | +Route::group(['middleware' => 'web', 'prefix' => 'admin'], function() { |
|
| 5 | 5 | // Admin authentication routes |
| 6 | 6 | Route::auth(); |
| 7 | 7 | |
@@ -12,6 +12,6 @@ discard block |
||
| 12 | 12 | // REDIRECT "login" URL TO "admin/login" |
| 13 | 13 | // |
| 14 | 14 | // The login url is hardcoded in Laravel in a few places, most importantly in the auth middleware. If your application has a different login for users (non-admins), you should consider overwriting this. |
| 15 | -Route::get('login', function () { |
|
| 15 | +Route::get('login', function() { |
|
| 16 | 16 | return redirect('admin/login'); |
| 17 | 17 | }); |
| 18 | 18 | \ No newline at end of file |
@@ -32,15 +32,15 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | // PUBLISH FILES |
| 34 | 34 | // publish config file |
| 35 | - $this->publishes([ __DIR__.'/config/config.php' => config_path('backpack/base.php'), ], 'config'); |
|
| 35 | + $this->publishes([__DIR__.'/config/config.php' => config_path('backpack/base.php'), ], 'config'); |
|
| 36 | 36 | // publish lang files |
| 37 | - $this->publishes([ __DIR__.'/resources/lang' => resource_path('lang/vendor/backpack'), ], 'lang'); |
|
| 37 | + $this->publishes([__DIR__.'/resources/lang' => resource_path('lang/vendor/backpack'), ], 'lang'); |
|
| 38 | 38 | // publish views |
| 39 | - $this->publishes([ __DIR__.'/resources/views' => resource_path('views/vendor/backpack/base'), ], 'views'); |
|
| 39 | + $this->publishes([__DIR__.'/resources/views' => resource_path('views/vendor/backpack/base'), ], 'views'); |
|
| 40 | 40 | // publish public Backpack assets |
| 41 | - $this->publishes([ __DIR__.'/public' => public_path('vendor/backpack'), ], 'public'); |
|
| 41 | + $this->publishes([__DIR__.'/public' => public_path('vendor/backpack'), ], 'public'); |
|
| 42 | 42 | // publish public AdminLTE assets |
| 43 | - $this->publishes([ base_path('vendor/almasaeed2010/adminlte') => public_path('vendor/adminlte'), ], 'adminlte'); |
|
| 43 | + $this->publishes([base_path('vendor/almasaeed2010/adminlte') => public_path('vendor/adminlte'), ], 'adminlte'); |
|
| 44 | 44 | |
| 45 | 45 | // use the vendor configuration file as fallback |
| 46 | 46 | $this->mergeConfigFrom( |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | private function registerBase() |
| 81 | 81 | { |
| 82 | - $this->app->bind('base',function($app){ |
|
| 82 | + $this->app->bind('base', function($app) { |
|
| 83 | 83 | return new Base($app); |
| 84 | 84 | }); |
| 85 | 85 | } |