<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>

<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>

## About Laravel

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](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).

Laravel is accessible, powerful, and provides tools required for large, robust applications.

## Learning Laravel

Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

In addition, [Laracasts](https://laracasts.com) contains thousands of 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.

You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.

## Project Setup (Dev)

Steps to get the app running locally after pulling latest changes. This project runs on **PHP 8.5**, and the system's default `composer` binary resolves to an incompatible PHP version — always invoke Composer as `php8.5 /usr/bin/composer` (not plain `composer`).

**No Node/npm, ever.** Styling is [Bootstrap](https://getbootstrap.com/) loaded via CDN `<link>`/`<script>` tags — there is no JS build step, no `package.json` dependencies to install, and nothing to compile. `git pull` and go.

### Quick setup

Run the included script from the project root:

```bash
./setup.sh
```

It installs Composer dependencies, creates `.env` and the SQLite database, runs migrations, fixes `storage`/`bootstrap/cache` permissions, and clears cached bootstrap files. Overrides:
- `PHP_BIN=/path/to/php8.5 ./setup.sh` if your PHP 8.5 binary isn't named `php8.5`.
- `COMPOSER_BIN=/path/to/composer ./setup.sh` if Composer isn't at `/usr/bin/composer`.

### Manual setup

If you'd rather run the steps yourself (or need to debug a failure in the script):

1. **Install PHP dependencies**
   ```bash
   php8.5 /usr/bin/composer install
   ```

2. **Environment file**
   ```bash
   cp .env.example .env
   php8.5 artisan key:generate
   ```
   Update `APP_URL` in `.env` to match your local dev URL.

3. **Database (SQLite)**
   This project uses SQLite (`DB_CONNECTION=sqlite`). Create the database file if it doesn't exist, then migrate:
   ```bash
   touch database/database.sqlite
   php8.5 artisan migrate
   ```

4. **Storage & cache permissions**
   Laravel needs write access to `storage/` and `bootstrap/cache/`, and to `database/database.sqlite` since it's used for sessions/cache/queue. On shared servers the PHP-FPM/web server user (e.g. `nginx`) is often **not** in your user's group, so `755`/`644` isn't enough — the web server can't read or write those paths. If you hit a blank/500 error or `SQLSTATE[HY000]: attempt to write a readonly database`, run:
   ```bash
   chmod -R 777 storage bootstrap/cache
   chmod 777 database
   chmod 666 database/database.sqlite
   ```

5. **Clear stale caches**
   After pulling changes that touch config, routes, or providers, clear cached bootstrap files:
   ```bash
   php8.5 artisan optimize:clear
   ```

6. **Verify**
   Visit the app URL in your browser. If it 500s, check `storage/logs/laravel.log` first — with `APP_DEBUG=true` in `.env`, Laravel also renders the error directly in the browser.

## Agentic Development

Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow:

```bash
php8.5 /usr/bin/composer require laravel/boost --dev

php8.5 artisan boost:install
```

Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

## Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
