Laravel is a PHP framework that combines power and simplicity. If you're getting started with backend web development, here’s how to install Laravel step-by-step and build your local development environment from scratch.
🛠️ What You’ll Learn:
- Installing PHP & Composer
- Setting up Laravel
- Creating your first Laravel app
- Running the server locally
💻 Requirements:
- PHP >= 8.1
- Composer (Dependency manager)
- Laravel CLI
🚀 Steps:
1. Install PHP & Composer
➡️ Download and install PHP from https://www.php.net and Composer from https://getcomposer.org.
2. Install Laravel Globally
composer global require laravel/installer
3. Create a New Laravel Project
laravel new myapp cd myapp
4. Serve Your Laravel App
php artisan serve
5. Visit in Browser
➡️ Open http://127.0.0.1:8000 to see your Laravel welcome page.
GitHub Repo:
https://github.com/rohitdhiman91/laravel-setup-guide
📌 Conclusion:
This is just the beginning! Next, explore routing, Blade templating, controllers, models, and building full apps in Laravel.
Top comments (0)