laravel create UserRequest using artisan code example Example: laravel request has if ($request->has('name')) { // }