Uploading picture in Laravel Registration
问题 I'm making a website where users can upload their own profile picture, with their credentials such as name, email, password, and dob using Laravel Authentication. After doing php artisan make:auth , there's this function in AuthController.php : protected function create(array $data) { return User::create([ 'name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password']), 'dob' => $data['dob'], 'profile_picture' => $data['profile_picture], ]); } and here's my form: