%PDF- %PDF-
Direktori : /var/www/html/evablog/routes/ |
Current File : /var/www/html/evablog/routes/web.php |
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::get('/', function () { return view('welcome'); }); Auth::routes(); Route::group(['middleware' => 'auth'], function () { Route::get('/categories', 'CategoryController@index')->name('dashboard.categories'); Route::get('/categories/{category}', 'CategoryController@show')->name('dashboard.categories.details'); Route::post('/categories/{id}', 'CategoryController@createOrUpdate')->name('dashboard.categories.createOrUpdate'); Route::get('/posts', 'PostController@index')->name('dashboard.posts'); Route::get('/posts/{category}', 'PostController@show')->name('dashboard.posts.details'); Route::post('/posts/{id}', 'PostController@createOrUpdate')->name('dashboard.posts.createOrUpdate'); }); // This should be the last route Route::get('/{any}', 'SpaController@index')->where('any', '.*');