@@ -122,7 +122,7 @@ |
||
| 122 | 122 | * Handle a registration request for the application. |
| 123 | 123 | * |
| 124 | 124 | * @param \Illuminate\Http\Request $request |
| 125 | - * @return \Illuminate\Http\Response |
|
| 125 | + * @return \Illuminate\Http\RedirectResponse |
|
| 126 | 126 | */ |
| 127 | 127 | public function register(Request $request) |
| 128 | 128 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | <p> |
| 21 | 21 | <?php |
| 22 | - $default_error_message = "An internal server error has occurred. If the error persists please contact the development team."; |
|
| 22 | + $default_error_message = "An internal server error has occurred. If the error persists please contact the development team."; |
|
| 23 | 23 | ?> |
| 24 | 24 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 25 | 25 | </p> |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | <p> |
| 21 | 21 | <?php |
| 22 | - $default_error_message = "The server is overloaded or down for maintenance. Please try again later."; |
|
| 22 | + $default_error_message = "The server is overloaded or down for maintenance. Please try again later."; |
|
| 23 | 23 | ?> |
| 24 | 24 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 25 | 25 | </p> |
@@ -64,15 +64,15 @@ discard block |
||
| 64 | 64 | // register the 'admin' middleware |
| 65 | 65 | $router->middleware('admin', app\Http\Middleware\Admin::class); |
| 66 | 66 | |
| 67 | - $router->group(['namespace' => 'Backpack\Base\app\Http\Controllers'], function ($router) { |
|
| 67 | + $router->group(['namespace' => 'Backpack\Base\app\Http\Controllers'], function($router) { |
|
| 68 | 68 | // 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. |
| 69 | - Route::group(['middleware' => 'web', 'prefix' => 'admin'], function () { |
|
| 69 | + Route::group(['middleware' => 'web', 'prefix' => 'admin'], function() { |
|
| 70 | 70 | // Admin authentication routes |
| 71 | 71 | Route::auth(); |
| 72 | 72 | |
| 73 | 73 | // Other Backpack\Base routes |
| 74 | 74 | Route::get('dashboard', 'AdminController@dashboard'); |
| 75 | - Route::get('/', function () { |
|
| 75 | + Route::get('/', function() { |
|
| 76 | 76 | // The '/admin' route is not to be used as a page, because it breaks the menu's active state. |
| 77 | 77 | return redirect('admin/dashboard'); |
| 78 | 78 | }); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function register() |
| 89 | 89 | { |
| 90 | - $this->app->bind('base', function ($app) { |
|
| 90 | + $this->app->bind('base', function($app) { |
|
| 91 | 91 | return new Base($app); |
| 92 | 92 | }); |
| 93 | 93 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | <br> |
| 50 | 50 | <small> |
| 51 | 51 | <?php |
| 52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 53 | 53 | ?> |
| 54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 55 | 55 | </small> |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | <br> |
| 50 | 50 | <small> |
| 51 | 51 | <?php |
| 52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 53 | 53 | ?> |
| 54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 55 | 55 | </small> |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | <br> |
| 50 | 50 | <small> |
| 51 | 51 | <?php |
| 52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 53 | 53 | ?> |
| 54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 55 | 55 | </small> |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | <br> |
| 50 | 50 | <small> |
| 51 | 51 | <?php |
| 52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 53 | 53 | ?> |
| 54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 55 | 55 | </small> |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | <br> |
| 50 | 50 | <small> |
| 51 | 51 | <?php |
| 52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
| 53 | 53 | ?> |
| 54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
| 55 | 55 | </small> |