- add notes

This commit is contained in:
2023-08-07 01:30:38 +02:00
parent ffee3b257d
commit fcf422678c
13 changed files with 486 additions and 0 deletions

View File

@@ -7,6 +7,26 @@ use Illuminate\Support\Facades\Route;
Route::name('admin.')->group(function () {
Route::namespace('Dashboard')->middleware('auth')->group(function (): void {
Route::get('', 'AdminPanelController')->name('home');
Route::name('note.')->prefix('note')->group(function (): void {
Route::get('', 'NoteController@index')
->name('index');
Route::get('create', 'NoteController@create')
->name('create');
Route::post('', 'NoteController@store')
->name('store');
Route::get('{note}', 'NoteController@show')
->name('show');
Route::get('{note}/edit', 'NoteController@edit')
->name('edit');
Route::put('{note}', 'NoteController@update')
->name('update');
Route::get('{note}/delete', 'NoteController@delete')
->name('delete');
Route::delete('{note}/delete', 'NoteController@destroy')
->name('destroy');
});
Route::name('message.')->prefix('message')->group(function (): void {
Route::get('', 'MessageController@index')
->name('index');