Posted in php
Posts Tagged ‘laravel’
The latest Laravel 5.7 release, 5.7.12, is here with new additions, changes, and bugfixes: First, the CacheManager class has a new forgetDriver() method that allows you to drop a connection already opened by the cache manager. This feature allows you to force a connection to reconnect or you change config options and want to create the connection again.
The Laravel team shipped Laravel 5.7.10 yesterday with a handful of new features, fixes, and changes: First up, is the ability to load relationship counts on an Eloquent collection. Before this feature, you could only load relationships, but now you can call loadCount() to get counts for all relations.
In this multi-part series, well be documenting the process of building and maintaining an open-source package for Laravel. We will cover everything from bootstrapping the package to dealing with your first issues and pull requests and as much as we possibly can in between.
Larastan is a static analysis command-line tool by Nuno Maduro built on top of PHPStan and focuses on finding errors in your Laravel code before running it. If youve ever used PhpStorm, youve probably experienced static analysis of your PHP code both in realtime and within code inspections.
I think most of us that have worked with Laravel for a while are very familiar with the package installation process: add the package via composer, register the service provider, publish the config file, update the environment file, hopefully you remember to update .env.example, and after all of that you hope that you didnt miss a step. This often involved copying and pasting from a README and bouncing back and forth between your editor and a browser.