Skip to content

Instantly share code, notes, and snippets.

@mitrallex
Last active February 1, 2018 18:46
Show Gist options
  • Save mitrallex/7ebba453379225a9009c5a15e425ae90 to your computer and use it in GitHub Desktop.
Save mitrallex/7ebba453379225a9009c5a15e425ae90 to your computer and use it in GitHub Desktop.
laravel-file-hosting
Route::get('/', 'MainController@index')->name('home')->middleware('auth');
Route::get('/files/{type}/{id?}', 'FileController@index');
Route::post('files/add', 'FileController@store');
Route::post('files/edit/{id}', 'FileController@edit');
Route::post('files/delete/{id}', 'FileController@destroy');
Auth::routes();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment