I saw a lot of providers are loaded in Laravel framework even I don't need to use them right away, so I want to register them whenever I want inside controller.
For example, in my config/app.php I comment line which load ValidationServiceProvider because in my home.blade.php doesn't need validation services, and here is my app.php
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
//Illuminate\Validation\ValidationServiceProvider::class,
...... other services
];
But in LoginController.php I need that services, how can I load it again to use validation services only in login page?
Any idea?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qiB5ca
via IFTTT
Aucun commentaire:
Enregistrer un commentaire