Laravel-5.4 - how to store the image path in database for all users who register...
I am using laravel-5.4 make:auth . Added one extra field in user table -> profile picture in views\auth\register.blade.php. In form, am just choosing an image and uploading it, which inturn stores a temporary path in database like C:\xampp\tmp\php469E.tmp. I want to store the image in public folder and store its image path in database.
I want to do the following: 1. How to store the image path in database for all users who registers.
Have tried defining store function in existing app\Http\Controllers\Auth\RegisterController.php. It doesn't even get into store function. Where and how to write the store function , so that the controller executes it. I am learning laravel for my new project.So any expert advice on how to proceed.
Want to reply to this thread?Login with github.