This commit is contained in:
Ludovic CANDELLIER
2021-08-21 19:48:21 +02:00
parent 9a0601d473
commit 81fbec892c
24 changed files with 423 additions and 65 deletions

View File

@@ -0,0 +1,10 @@
<?php
Route::prefix('Comments')->name('Comments.')->group(function () {
Route::get('{model?}/{model_id?}', 'CommentController@index')->name('index');
Route::get('create/{model?}/{model_id?}', 'CommentController@create')->name('create');
Route::delete('destroy/{id?}', 'CommentController@destroy')->name('destroy');
Route::post('store', 'CommentController@store')->name('store');
Route::get('edit/{id}', 'CommentController@edit')->name('edit');
});

View File

@@ -0,0 +1,5 @@
<?php
Route::prefix('Core')->namespace('Core')->name('Core.')->group(function () {
include( __DIR__ . '/Comments.php');
});