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:8 Then run this command
php artisan serve
Then you will get url like that http://127.0.0.1:8000/
- Upload image in the database with local folder and image send mail. - October 23, 2020
- How to protect .env file in Laravel. - September 10, 2020
- How to upload laravel project on cPanel. - September 9, 2020