Steam Vis
Мужчины, я не понимаю, как передать модель в роуте
Argument 1 passed to App\Http\Controllers\Cars\CarsController::destroy() must be an instance of App\Models\Car, string given
action="{{ route('cars.destroy', [
'locale' => app()->getLocale(),
'car' => $car
]) }}">
Route::group([
'prefix' => '{locale}/dashboard',
'middleware' => ['locale', 'verified', 'company']
], function () {
Route::resources([
'cars' => 'Cars\CarsController',
]);
});
не помню - важно ли это, но у тебя в роуте 'cars', а в экшене - 'car'...