public function store(Request $request)
{
$file = $request->file('file');
$new_name = rand() . '.' . $file->getclientOriginalExtension();
$filesize = $request->file('file')->getSize();
$file->move(public_path('videos'), $new_name);
$id = Auth::user()->id;
$datasave = new home_contents();
$datasave->img = $new_name;
$datasave->created_id = $id;
$datasave->updated_id = $id;
$datasave->save();
}
So please share me how fix it . Best regard, Lab
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire