489495df
芝麻web文件管理
芝麻web文件管理V1.00
489495df
编辑当前文件:/home/landifun/public_html/Modules/Blogs/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('blogs', 'BlogsController@getBlogs')->name('blogs'); Route::get('blog/{slug}/{id}', 'BlogsController@getBlog')->name('blog'); Route::middleware('auth')->group(function () { Route::middleware('can:admin')->prefix('settings')->name('settings.')->group(function () { // categories Route::group(['prefix' => 'blogs', 'as' => 'blogs.'], function(){ Route::resource('categories', 'CategoriesController')->except('show'); }); // blogs Route::resource('blogs', 'BlogsController')->except('show'); Route::post('blogs/upload-image', 'BlogsController@upload_image')->name('blogs.upload_image'); }); });
Not Found
404
Not Found