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

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

//try to import class bellow namespace
use Route;

Example 2: 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

Tags:

Php Example