lundi 19 août 2019

How to check if CustomController.php file exists in Controllers folder in Laravel

How can I check if my custom controller(AbcContorller.php) file+class and its method(ex. abc() in AbcController) exists in Laravel.

I want to check it from another controller(Ex. XyzController), method(checkAbc()).

Like when I call my route like this: Route::get('/checkFile', 'XyzController@checkAbc');

checkAbc() method will check if AbcController.php file found or not inside Controllers folder. If found then check if abc() method found or not inside AbcController.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HbIJjF
via IFTTT

Aucun commentaire:

Enregistrer un commentaire