skip to Main Content

Laravel route model binding for model with uuid does not instantiate model

I've run out of ideas so I thought I'll ask around - here's my code: # app/Map/MapServiceProvider.php class MapServiceProvider extends ServiceProvider { /** * Bootstrap any package services. */ public function boot(): void { Route::model('map_marker', Marker::class); $this->loadMigrationsFrom(__DIR__.'/Migrations'); $this->loadRoutesFrom(__DIR__.'/routes.php'); } //…

VIEW QUESTION

Validator class in Laravel 10

In my controller I validate fields of my json request. To obey single responsibility, I want to create a custom Validator class and put following code to my validator class. When I type: php artisan make:validator MyValidator I found out…

VIEW QUESTION
Back To Top
Search