Skip to content

Commit

Permalink
Fix clear cache errors with duplicate route names #759 (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio authored Aug 13, 2020
1 parent 27316f9 commit 4fa58ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ private function mapWebRoutes()
Route::get('livemap', 'LiveMapController@index')->name('livemap.index');
});

Route::get('/logout', 'Auth\LoginController@logout')->name('auth.logout');
Auth::routes(['verify' => true]);
Route::get('/logout', 'Auth\LoginController@logout')->name('logout');
});
}

Expand Down
2 changes: 1 addition & 1 deletion modules/Installer/Providers/InstallerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function registerRoutes()
Route::post('/dbtest', 'InstallerController@dbtest')->name('dbtest');

Route::get('/step1', 'InstallerController@step1')->name('step1');
Route::post('/step1', 'InstallerController@step1')->name('step1');
Route::post('/step1', 'InstallerController@step1')->name('step1post');

Route::get('/step2', 'InstallerController@step2')->name('step2');
Route::post('/envsetup', 'InstallerController@envsetup')->name('envsetup');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@section('content')
<p>Press continue to start</p>
{{ Form::open(['route' => 'installer.step1', 'method' => 'post']) }}
{{ Form::open(['route' => 'installer.step1post', 'method' => 'post']) }}
<p style="text-align: right">
{{ Form::submit('Start >>', ['class' => 'btn btn-success']) }}
</p>
Expand Down
2 changes: 1 addition & 1 deletion modules/Updater/Providers/UpdateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function registerRoutes()
Route::get('/', 'UpdateController@index')->name('index');

Route::get('/step1', 'UpdateController@step1')->name('step1');
Route::post('/step1', 'UpdateController@step1')->name('step1');
Route::post('/step1', 'UpdateController@step1')->name('step1post');

Route::post('/run-migrations', 'UpdateController@run_migrations')->name('run_migrations');
Route::get('/complete', 'UpdateController@complete')->name('complete');
Expand Down
2 changes: 1 addition & 1 deletion modules/Updater/Resources/views/index-start.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@section('content')
<h2>phpvms updater</h2>
<p>Press continue to check if there are any updates available.</p>
{{ Form::open(['route' => 'update.step1', 'method' => 'post']) }}
{{ Form::open(['route' => 'update.step1post', 'method' => 'post']) }}
<p style="text-align: right">
{{ Form::submit('Start >>', ['class' => 'btn btn-success']) }}
</p>
Expand Down

0 comments on commit 4fa58ce

Please sign in to comment.