cpt_pall's avatar

Create user

Hello, i try create user with photo but i don't know how write this method

protected function create(array $data)
    {
        $user = User::create([
            'name' => $data['name'],
            'surname' => $data['surname'],
            'email' => $data['email'],
            'password' => bcrypt($data['password']),   
        ]);
      $user->save();
    }

I created already have a method with upload image but that i don't know how

0 likes
1 reply
Snapey's avatar

If you have subscription to the videos, watch the project flyer video for photo uploads. From this you will learn how to upload a file from a form, gather its properties, move it to the correct location and add the path of the image into the database. From this one video you should be able to learn all you need.

Please or to participate in this conversation.