skip to Main Content

Laravel – request->filled method can not see parameter, which exists within request data

In web.php file I have route like this: Route::get('/list/{list_id}/edit', [ListingController::class, 'edit']); Then in ListingController: public function edit(Request $request) { var_dump($request->list_id); var_dump($request->filled('list_id')); exit; } If url is like: domain.com/list/20/edit result is: string(2) "20" bool(false) So $request->list_id exists but $request->filled('list_id') gives FALSE.…

VIEW QUESTION

ENV variable inaccessible (null) in Laravel project

Getting the following error when I access my Laravel app from the browser A portion of the .env file MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null I have tried running the following commands php artisan config:clear php artisan cache:clear composer dump-autoload…

VIEW QUESTION
Back To Top
Search