Laravel
Link
The PHP Framework for [Web](…/Web development/) Artisans
Resources
Articles
- Laravel News
- Set up a Laravel environment in VS Code with Dev Containers
- Using Laravel in VS Code (Start Quickly with a Dev Container! 📦)
- Debug your Laravel Sail Applications with xDebug
- How To Install and Configure Laravel with Nginx on Ubuntu 22.04 (LEMP)
- You don’t need Laravel Sail (opinion piece)
- How to Log All SQL Queries in Laravel
Components
- Blade
- Templating engine that allows using full PHP
- Cashier
- Subscription billing using Stripe or Paddle
- Dusk
- Selenium-based browser automation (testing)
- Echo
- Event broadcasting using WebSockets (for JavaScript clients)
- Eloquent
ORM for MySQL, Postgres, SQLite and SQL Server
- Homestead
- Pre-packaged Vagrant VM for development
- Horizon
Dashboard and code-driven configuration for your Laravel powered Redis queues
- Octane
- Increase performance and concurrency with application servers
- Pint
Opinionated PHP code style fixer
- Queues
Process jobs using Redis, Amazon SQS, or even MySQL and Postgres.
- Sanctum
- Manage simple API keys/tokens
- Sail
A light-weight command-line interface for interacting with Laravel’s default Docker development environment
- Scout
- Syncs ORM models/records with full-text search indexes in Algolia, Meilisearch, or MySQL/PostgreSQL
- Socialite
- OAuth authentication via Facebook, Twitter, LinkedIn, Google, GitHub, GitLab, and Bitbucket
- Telescope
- Debugging UI
- Valet
Add-ons
- Nova
Administration panel for Laravel
- Spark
- Recurring billing using Stripe, Paddle, PayPal (via Paddle)
Services
- Envoyer
- Zero-downtime deployment for all PHP applications
- Forge
Provision and deploy unlimited PHP applications on DigitalOcean, Akamai, Linode, Vultr, Amazon, Hetzner and more.
- Vapor
A serverless deployment platform for Laravel, powered by AWS
- Learn Laravel Vapor YouTube playlist
Starter kits
- Breeze
Lightweight starter kit scaffolding for new applications with Blade or Inertia.
- Jetstream
- Starter kit using Tailwind and either Livewire or Inertia scaffolding
Third-party
Packages
JavaScript
- Inertia
Create modern single-page React, Vue, and Svelte apps using classic server-side routing. Works with any backend — tuned for Laravel.
- Livewire
Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel.
Software based on Laravel
- Statamic CMS
- Laravel Zero
Micro-framework for console applications
FAQ
Cloud-config example for remote development using [VS Code](…/Microsoft Visual Studio Code/)
- This example assumes Ubuntu 22.04.
- Adjust the usernames everywhere (search for “claus” and “cconrad”).
Language files not loaded
- If Laravel does not seem to use translation files from the
./lang
directory, check if you have a./resources/lang
directory, and delete it.
Eloquent query logging
Changes to “Job” classes do not take effect
- Make sure to restart the queue worker (e.g. Horizon) after each code change.
Laravel Tinker does not alias model automatically
- Run
composer dump-autoload
to regenerate the list of all known classes
Updating created_at
manually
- The
$model->unguard()
method allows to temporarily remove protection from mass assignment on a model instance. Apparently this also allows updating thecreated_at
property.
“A facade root has not been set.” in beforeAll
of Pest test
- Laravel methods only work in
beforeEach
, not inbeforeAll
.