Answers for "route:: "resourceverbs([]);" Class 'App\Providers\Route' not found"

PHP
1

route:: "resourceverbs([]);" Class 'App\Providers\Route' not found

/**As I see this question has not been answered for over a month now,
*
*Go to the file where you've used Route::method_name() and import Route class there by->
*/

use Route;

//This is common in App\Providers\AppServiceProvider@boot() that implements

Route::resourceVerbs([...]);

//Let me know if this helps
Posted by: Guest on May-01-2021
1

route:: "resourceverbs([]);" Class 'App\Providers\Route' not found

//try to import class bellow namespace
use Route;
Posted by: Guest on May-01-2021

Code answers related to "route:: "resourceverbs([]);" Class 'App\Providers\Route' not found"

Browse Popular Code Answers by Language