route 3a 3aresourceverbs

Solutions on MaxInterview for route 3a 3aresourceverbs by the best coders in the world

showing results for - "route 3a 3aresourceverbs"
Maximilian
30 Oct 2020
1/**
2* By default, Route::resource will create resource URIs using English verbs.
3* If you need to localize the create and edit action verbs,
4* you may use the Route::resourceVerbs method.
5*This may be done at the beginning of the boot method within your application's
6* App\Providers\RouteServiceProvider:
7*/
8
9// app/providers/AppServiceProvider.php
10use Route;
11
12/**
13 * Define your route model bindings, pattern filters, etc.
14 *
15 * @return void
16 */
17public function boot()
18{
19    Route::resourceVerbs([
20        'create' => 'crear',
21        'edit' => 'editar',
22    ]);
23
24    // ...
25}