mercredi 28 août 2019

i keep getting "function name must be a string" error

I am building a site using laravel, and I got this error when trying to upload an image. I'm a beginner so, can I get some help?

$user = Auth::user();
    $user->name = $request('name');
    $user->update();
    $file = $request->file('image');
    $filename = $request->name . '-' . $user->id . '.jpg';



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

Aucun commentaire:

Enregistrer un commentaire