Answer the question
In order to leave comments, you need to log in
How to learn to understand the API and the Laravel API in particular?
Reading the LARAVEL API:
void pattern(string $key, string $pattern)
Set a global where pattern on all routes.
Parameters
string $key
string $pattern
Return Value
void
Please tell me, how should I find out from all this where this method should be entered? No, now I was told in which file it should be and in which method. But the question is, how to find out from the API? And what's the point of an API if you can't find out from it?
Answer the question
In order to leave comments, you need to log in
This is from the routes right?
I can guess how it works
following the logic of Laravel patterns, routes and other plushies, it is worth configuring in Providers/RouteServiceProvider.php in the boot section
public function boot()
{
//
parent::boot();
// account
Route::model('account', \App\Models\User::class);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question