0
0
Laravelframework~15 mins

Development server in Laravel - Mini Project: Build & Apply

Choose your learning style9 modes available
Laravel Development Server Setup
📖 Scenario: You are starting a new Laravel project and want to run it locally to see your changes in the browser.
🎯 Goal: Set up a Laravel development server and run it locally using the built-in Artisan command.
📋 What You'll Learn
Create a new Laravel project folder
Navigate to the project directory
Run the Laravel development server using Artisan
Access the server URL in a browser
💡 Why This Matters
🌍 Real World
Developers use the Laravel development server to quickly test and view their web applications locally before deploying to production.
💼 Career
Knowing how to run a Laravel development server is essential for backend and full-stack developers working with Laravel to build and test web applications.
Progress0 / 4 steps
1
Create a new Laravel project folder
Open your terminal and create a new Laravel project folder named myapp using the command laravel new myapp.
Laravel
Need a hint?

Use the laravel new command followed by the folder name myapp to create the project.

2
Navigate to the project directory
Change your terminal directory to the newly created myapp folder using the command cd myapp.
Laravel
Need a hint?

Use the cd command to enter the myapp folder.

3
Run the Laravel development server
Start the Laravel development server by running the command php artisan serve inside the myapp directory.
Laravel
Need a hint?

Use the Artisan command php artisan serve to start the local server.

4
Access the development server in the browser
Open your web browser and go to http://127.0.0.1:8000 to see the Laravel welcome page served by your development server.
Laravel
Need a hint?

After running the server, open the URL http://127.0.0.1:8000 in your browser to see the Laravel welcome page.