Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
- Docker and Docker Compose
- PHP 8.1+
- Composer
- Clone the repository
- Run
composer install
. You might need to pass--ignore-platform-reqs
if you're not using PHP 8.1 - Run
cp .env.example .env
- Run
./vendor/bin/sail up -d
- Run
./vendor/bin/sail artisan key:generate
- Run
./vendor/bin/sail artisan migrate
- Run
./vendor/bin/sail artisan db:seed
-
Install flyctl
-
Authenticate with flyctl
-
Open the
fly/applications/mysql
directory and runflyctl launch
3.1 If you want, change the name of the app 3.2 Once the app is created in fly.io, add the following two secrets:MYSQL_PASSWORD
MYSQL_ROOT_PASSWORD
- You can do it from here: https://fly.io/sites/your-app-name/secrets, e.g. https://fly.io/apps/laracasts-blog-mysql/secrets
-
Run
flyctl deploy
-
Inside of the root directory, run
flyctl launch
- If you want, change the name of the app
- Once the app is created in fly.io, add the following two secrets:
DB_PASSWORD
(the same asMYSQL_PASSWORD
)- You can do it from here: https://fly.io/sites/your-app-name/secrets, e.g. https://fly.io/apps/laracasts-blog/secrets
-
Run
flyctl deploy
-
Visit the app URL: https://laracasts-blog.fly.dev