how to get request value inside request file in laravel code example Example: laravel request has if ($request->has('name')) { // }