How to file upload in DB With local folder using laravel 5.8

Step:1 you have to make these
(A) – php artisan make:controller ImageUploadController
(B) – php artisan make:model ImageUpload -m

Step:2 Open the welcome.blade.php page then write this code.

Step:3 Then go to the route/web.php page and Define the controller and function like that.

Step:4 Then open the table database/migration/create_image_uploads_table.php

Step:5 Then open controller and define this.

Step:6 after finished. this run the command
(A)- php artisan migrate
(B) – php artisan storage:link

Step:7

Step:8 Then run this command
php artisan serve
Then you will get url like that http://127.0.0.1:8000/