route name prefix and group laravel code example
Example 1: route group in laravel
Route::group(['prefix' => 'admin']){
Route::get('/',function(){
//...
});
}
Example 2: prefix laravel route
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});