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:
Michal Kváček
2016-04-02 16:56:53 +02:00
parent 7bb63aca3f
commit 31c1648597
13 changed files with 49 additions and 32 deletions
+3 -3
View File
@@ -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)