FEATURE #1530: make urls without /public
This change consist in renaming server.php to index.php, tweaking /.htaccess and replacing all asset('../resources....') with asset('resource/...') path. Everything should work fine now.
This commit is contained in:
+3
-3
@@ -254,17 +254,17 @@ Route::group([
|
||||
|
||||
Route::group(['middleware' => ['web']], function () {
|
||||
|
||||
Route::get('', 'Visitor\Homepage@getIndex')
|
||||
Route::get('/', 'Visitor\Homepage@getIndex')
|
||||
->name('page.index');
|
||||
|
||||
// display login form
|
||||
Route::get('login', function () {
|
||||
Route::get('admin/login', function () {
|
||||
return view('admin.loginForm.form');
|
||||
})
|
||||
->name('loginForm');
|
||||
|
||||
// handle login
|
||||
Route::post('login', 'Admin\Login@postLogin')
|
||||
Route::post('admin/login', 'Admin\Login@postLogin')
|
||||
->name('login');
|
||||
|
||||
// route for all content pages. This rule must be specified last (because it matches every route)
|
||||
|
||||
Reference in New Issue
Block a user