I am using session in Laravel 5.1 and here is my Controller code :
Route::post('/task', function (Request $request) {
$validator = Validator::make($request->all(), [
'name' => 'required|max:255',
]);
if ($validator->fails()) {
return redirect('/')
->withInput()
->withErrors($validator);
}
});
I need to use session, and getting this error : Call to undefined method Illuminate\Support\Facades\Request::all()
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/396OQ6S
via IFTTT
Aucun commentaire:
Enregistrer un commentaire