Skip to main content
Francisco Ferreira Roque Júnior avatar
Francisco Ferreira Roque Júnior

If someone is running using laravel sail and after run the command "npm run dev" you got just a blank page. try to add the code below at vite.config.js file. After the plugins array property.

server: { //... https: false, hmr: { host: 'localhost' } }

Francisco Ferreira Roque Júnior avatar
Francisco Ferreira Roque Júnior

If someone get some issue to find the city "Vilnius" at the $vendor->restaurant()->create() step. It's because this city name not exist at the CitySeeder $cities array, so just add this city name in the $cities array. =)

👍 4
Velkacem avatar

Thank you so much!

Mohammedterfa avatar

thank you :)

khaled92 avatar

I have an error in this line: $this->authorize('restaurant.viewAny'); it says call to undefined method can someone help please, I think there is something missing in the abstract controller class

Modestas avatar

This tutorial is written for Laravel 9-10, and in Laravel 11 some things have changed.

One of which is the default BaseController now does not include a trait. You can add it manually:

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

Or you can use Gates to check in a method

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.