Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Upload files or Documents in Mysql Database Using laravel.

Step: 1- First of all you have to go:-

Step:2- then right-click in this Drive and got to Git Bas Here and click.

Step:3-run the composer

step: 4- write the project name. then press Enter. it will take time for this run this project


Step:5- The next step go to inside the project folder and click the Git base Here and write php artisan serve . and Enter

And copy the url like that: http://127.0.0.1:8000/ run this url in the web browser.

Step:6- see the pic

Step:7- now we need to create a File model.

Step:8- migrations using the following command.

Step:9– Create the file table.

Step:9-  File.php, write the following code.

Step:10- Now, define the Relationship inside the User.php model.

Step:11- php artisan make:controller FileController. run this command in composer.

Step:12- Create a View and Route for uploading files.

Step:13- home.blade.php create this page

Step:14- you need to define the Post route inside routes >> web.php file.

you can see the page view.

Step:15- Storing the form data.

Also, we need to update our view to see the flash message.

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.