------------------------------------------- echo $request->input('incoming'); ------------------------------------------- ------------------------------------------- echo $request->incoming; ------------------------------------------- ------------------------------------------- if($request->path()==="incoming") { return $request->all(); } else { echo "different request"; } ------------------------------------------- ------------------------------------------- if($request->is('incoming')) receives incoming /* starts with incoming and ends with whatever */ { return $request->all(); } else { echo "different request"; } ------------------------------------------- ------------------------------------------- echo $request->url(); ------------------------------------------- ------------------------------------------- if ($request->isMethod('post')); { echo "post method"; } else { echo "get method"; } ------------------------------------------- ------------------------------------------- return $request->except(['_token']); ------------------------------------------- ------------------------------------------- if ($request->has('_token')); { echo "value exists"; } ------------------------------------------- ------------------------------------------- if ($request->filled('_token')); { echo "full"; } else { echo "it is empty"; } ------------------------------------------- ------------------------------------------- $request->flash(); value="{{old('value')}}" ------------------------------------------- ------------------------------------------- $request->flashOnly('value'); flash this value ------------------------------------------- ------------------------------------------- $request->flashExcept('value'); /* just don't flash this value */ ------------------------------------------- ------------------------------------------- $request->file('value'); dd($request->file('value')); enctype="multipart/form-data" needs to be added to the form side -------------------------------------------

laravel request all usage