The popular Guzzle HTTP client reached version 7 last week, with the exciting news that most users (the changelog says 95% of users) will be able to upgrade without modification. This release focused on increasing the minimum supported PHP version and introducing new language features found in PHP 7. The
Sanctum is Laravel’s lightweight API authentication package. In this tutorial, I’ll be looking at using Sanctum to authenticate a React-based single-page app (SPA) with a Laravel backend. Assuming the front- and back-end of the app are sub-domains of the same top-level domain, we can use Sanctum’s cookie-based authentication, thereby saving
At Laracon US in NYC last year, I announced that I was developing a video course completely focused on improving Laravel application performance by pushing more work to the database layer. I am excited to announce that this course, titled Eloquent Performance Patterns, is now available, and has already sold
The Spatie team released two new packages around scheduled tasks: the laravel-cronless-schedule package and laravel-short-schedule. While these packages have different use-cases, we thought they were related enough to share them in one post. Typically the native Laravel scheduling gives you enough flexibility for most apps; however, these packages provide both
Together with my colleagues at Spatie, I have produced over 200 packages with more than 75 million downloads in total. We learned a lot by quality packages like laravel-permission, laravel-backup, browsershot, laravel-medialibrary, and many more. We feel we have a pretty good workflow to produce reliable, readable, and maintainable packages.
Laravel Intellisense is a Visual Studio Code plugin by Mohamed Benhida that provides some nice auto-completion for things like Eloquent models, factories, config, and API resources. The thing I appreciate about this plugin is support for things like config(), view(), and other areas of Laravel you’d typically not have auto-completion
The Laravel team released v7.15.0 with a withToken() test helper, a new model method to define relationships between models outside of a class definition, along with the latest new features, fixes, and changes in the 7.x branch: Extendable Relations for Models Gergő D. Nagy contributed a resolveRelationUsing method to models,
Andrés Santibáñez has just released a new Livewire component to show records according to their current status. Here is a preview for how it works: Usage To use this component, you must create a new Livewire component that extends fromLivewireStatusBoard You can use make:livewire to create a new component. For