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. TheContinue Reading

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 savingContinue Reading

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 bothContinue Reading

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.Continue Reading

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-completionContinue Reading

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,Continue Reading

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. ForContinue Reading