skip to Main Content

Laravel Attempt to read property "alias" on null

Route::get('catalog/{catname}', [MainController::class, 'getCatalog'])->name('catalog.page'); Route::get('catalog/{catname}/{alias}', [MainController::class, 'getItemsForList'])->name('catalog.view.item'); When I click on the link /catalog/table/table-black-and-white, I get an error Attempt to read property "alias" on null During development, I connected the database via belongsToMany AppModelsCatalog public function items() : BelongsToMany { return…

VIEW QUESTION

filter url in laravel

current Url: http://localhost:8000/filter-results?country_id=1&education_level_id=&employment_type_id=&language_id=&profession_id=&religion_id=1 how I wanted to looks like: http://localhost:8000/filter-results?country_id=1&religion_id=1 how can I do that. more details: I have a filter view as a part of the home page which have 6 combobox for selecting a country, education level etc..…

VIEW QUESTION
Back To Top
Search