Thursday, March 1, 2018

file upload in laravel | laravel.

Use this code in your controller :-

$fileName = Input::file('file')->getClientOriginalName();

$destinationPath = base_path().'/public/upload/';

Input::file('file')->move($destinationPath, $fileName);

No comments:

Post a Comment