Asad
130
7
Laravel

route [home.index] not defined in urlgenrator 304

Posted 11 months ago by Asad

This is mine Error. https://gyazo.com/ebbd2902e4a43ef67db2a916c36b608a

This is mine Code in form of screenshot of web.php and written down too https://gyazo.com/509c0e1fc703170f3b5b170f549a4f52

After LOGGING In its giving this error

         Route::group(['prefix'=>'admin', //If i change this to gaffer then Only the content 
          will be avalable
         'middleware'=>'auth',
         'namespace'=>'admin'],function(){
            

            //Here i have use [email protected] 
            //because there is no model for this thats why
            // i have included its name and Index function 
            //and its a simple controller and no Resource controller

            Route::get('dashboard',
            '[email protected]')
            ->name('admin.dashboard');

            // Route::get('dashboard','[email protected]') - 
           >name('admin.dashboard');

            //its Slider model is maked first or its Controller was made with Migrations 
            thats
            //why is available thats  and no need to call for index function
            Route::resource('slider',
            'SliderController');

Please sign in or create an account to participate in this conversation.