Skip to main content

Comments & Discussion

FF
Francisco Ferreira Roque Júnior ✓ Link copied!

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' } }

FF
Francisco Ferreira Roque Júnior ✓ Link copied!

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. =)

V
Velkacem ✓ Link copied!

Thank you so much!

M
Mohammedterfa ✓ Link copied!

thank you :)

K
khaled92 ✓ Link copied!

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

M
Modestas ✓ Link copied!

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.