jeudi 13 septembre 2018

Undefined variable: request - Laravel 5.1

I have include this on top of my file

use Request;

and also,

use Illuminate\Http\Request;


When I tried use

$files = $request->file('images');
dd($files);

I kept getting

ErrorException in PortfolioController.php line 113: Undefined variable: request

Why ?

According to the doc of 5.1

https://laravel.com/docs/5.1/requests

use Illuminate\Http\Request;

should be enough.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2p7vO8Z
via IFTTT

Aucun commentaire:

Enregistrer un commentaire