What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-15 06:10:27
Route pattern cannot reference variable name more than once. laravel
When you define a route as a resource then Laravel seems to create all the routes necessary for your resource: GET, POST, PATCH, DELETE. So you would just need to define Route::resource('taxonomy','TaxonomyController'); or Route::resource('taxonomy.... Add solution -
-
PHP 2022-01-29 05:00:22
change the method name in resource in laravel
Route::resource('my/path/to/whereever/I/like', 'MyController', [ 'names' => [ 'index' => 'my_route_base_name.index', 'edit' => 'my_route_base_name.edit', 'create' => 'my_route_base_name.create', etc... ]... Add solution -
PHP 2021-10-23 23:02:13
laravel route resources
By default, Route::resource will create the route parameters for your resource routes based on the "singularized" version of the resource name. You can easily override this on a per resource basis using the parameters method. The array passed i... Add solution -
PHP 2021-10-06 00:51:06
laravel routes resource
// Implicit Model Binding Routes can be created with one line using either: Route::resource('photos', PhotoController::class); // OR Route::resources([ 'photos' => PhotoController::class, 'posts' => PostController::class, ]); php artisan make:... Add solution