A
A
avr19722017-09-18 14:23:46
Laravel
avr1972, 2017-09-18 14:23:46

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

2 answer(s)
I
Ilya Gerasimov, 2017-09-18
@avr1972

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);
}

if there are too many of them, we can put them in a separate file like routes, but no one obliges us to anything, we have the right to do as we want.
API documentation is just a set of methods that the framework gives us in the basic manuals, everything cannot be described, having examined the docks, we can understand what the framework can give us, how to use it, we decide for ourselves

M
miki131, 2017-09-20
@miki131

Read https://laravel.com/api/5.5/ and learn new things

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question