laravel use request data if exists code example Example: laravel get query parameters $name = $request->query('name', 'Helen');