Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

move img to public folder in laravel

$request->file('image')->move(public_path() . 'users/' . $user->id . '.jpg');
// or
$request->file('image')->move(public_path('users/' . $user->id . '.jpg'));
Source by www.etharshrouf.com #
 
PREVIOUS NEXT
Tagged: #move #img #public #folder #laravel
ADD COMMENT
Topic
Name
3+4 =