funcion/refactor-general #45

Merged
atasistro merged 240 commits from funcion/refactor-general into master 2025-06-19 21:10:19 -03:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 4f74bf38f9 - Show all commits

View file

@ -22,4 +22,8 @@ class SessionController extends Controller
public function fetch() {
return session('pedido_id');
}
public function destroy() {
session()->forget('pedido_id');
}
}

View file

@ -32,6 +32,7 @@ Route::middleware(['auth', 'role:barrio'])->group(function() {
Route::get('/pedido', 'RouteController@main')->name('pedido');
Route::get('/pedido/sesion', 'SessionController@fetch');
Route::post('/pedido/sesion', 'SessionController@store');
Route::delete('/pedido/sesion', 'SessionController@destroy');
});
Route::get('/admin/login', 'AdminController@show')->name('admin.login');