use Illuminate\Support\Facades\View;
What's wrong with facades?
https://laravel.com/docs/8.x/facades#facade-class-reference
use Illuminate\View\Factory;
I am learning Laravel and I am a bit confused. PHPStorm offers me several view import options:
View
Illuminate\View\View
Illuminate\Contracts\View\View
which one should I choose?
I have tried using
use Illuminate\View\View;
also, several controllers are using
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
They all seem to work in the same manner, which one is the correct way to import view class? I don't want to use View Facade. Thanks in advance for any help
Please or to participate in this conversation.