Comments & Discussion
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. =)
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
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
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' } }