G
G
Governor2020-04-24 15:46:41
PHP
Governor, 2020-04-24 15:46:41

Why doesn't Laravel need to include third party class files?

I don't know much about PHP, and in order to use a class from another file, this file must first be included (include or require). I'm learning Laravel, here, for example, to use a facade, it's enough to use the class namespace: use Illuminate\Support\Facades\Cache;
I don't understand how this works?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-04-24
@Mr-Governor

class autoload.
https://www.php.net/manual/ru/language.oop5.autolo...
https://www.php-fig.org/psr/psr-4/
https://getcomposer.org/doc/ 01-basic-usage.md#auto...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question