Route Rules

Best practice ( https://laravel.com/docs/9.x/routing )

  1. Routes must have a name instead of URL Example
    Route::get('/post/{post}', function () {
    //
    })->name('post.show');
  2. Using Rout Parameters
  3. The function arguments must always be the same as the root parameters are bing called

Did you find this article useful?