How to run Laravel 9 Project without PHP artisan command on localhost

Laravel is a popular PHP web application framework that provides an elegant and expressive syntax for building web applications. It is an open-source framework that is widely used for developing scalable and robust web applications. Laravel 9 is the latest version of Laravel and comes with many new features and improvements. In this post, we will discuss how to run a Laravel 9 project without using the PHP Artisan command in Windows 10 on localhost.

Running Laravel 9 Project without PHP Artisan Command in Windows 10 on Localhost:

To run a Laravel 9 project without using the PHP Artisan command in Windows 10 on localhost, you need to follow the steps given below:

Step 1: Download and install XAMPP on your Windows 10 system.

Step 2: Open the XAMPP control panel and start the Apache and MySQL services.

Step 3: Create a new folder in the htdocs folder in the XAMPP installation directory and name it according to your project.

Step 4: Copy all the files and folders of your Laravel 9 project to the new folder you created in the htdocs folder.

Step 5: Open the .env file in your project folder and update the database configuration settings to match your MySQL database settings.

Step 6: Open the php.ini file in the XAMPP installation directory and uncomment the following line by removing the semicolon (;) at the beginning of the line:

;extension=pdo_mysql

Step 7: Save the php.ini file and restart the Apache server in the XAMPP control panel.

Step 8: Open your web browser and go to the following URL:

How to run Laravel 9 Project without PHP artisan command

Step 1: Create a new index.php file in the Main project folder and write the below line in the index.php file.

Step 2: Create a new .htaccess file or cut .htaccess file from the public folder and paste it Main project folder.

Step 3: Edit the app.php file. Go to Main Project Folder>Config>app.php. Edit below line and paste your project url

Conclusion:

In conclusion, running a Laravel 9 project without using the PHP Artisan command in Windows 10 on localhost is a simple process that can be done by following the steps mentioned above. XAMPP provides an easy-to-use environment for running PHP applications on Windows, and Laravel 9 is a powerful framework for building web applications. By combining the two, you can create and run robust and scalable web applications on your Windows 10 system.

Leave a Comment

Your email address will not be published. Required fields are marked *