how can extract value of input in same page in laravel code example Example: laravel request has if ($request->has('name')) { // }