Posted in php
Posts Tagged ‘example’
Laravel Console Task is a package by Nuno Maduro that allows you to perform tasks and to output the results to the console. For example, lets say your package comes with a console command that checks for certain requirements to validate that the installation is compatible with your PHP environment: As seen in the above example, the macro returns the result of the closure, which means you can capture the result in a variable if you need to reference the outcome later in your console.
Laravel 5.7.9 was released on Tuesday with some changes and fixes, along with a new 401 exception view, new session assertion methods, and PendingResourceRegistration is macroable. First, a new assertion in the TestResponse class called assertSessionDoesntHaveErrors() can be used to ensure that the session doesnt include an error for a given field: You can also use the assertSessionHasNoErrors() assertion to verify that the session doesnt have any errors.
Log Fake is a drop-in fake logger for testing with the Laravel framework by Tim MacDonald (@timacdonald). The Log fake package gives you the ability to fake the logger in your application, including the ability to make assertions against channels and stacks introduced in Laravel 5.6.
Laravel Proximage is a handy package by Ilya Sakovich for proxying images through images.weserve.nl. The package provides you convenience methods for generating URLs with a fluent API for image transformations.
Laravel 5.7.7 is now released and includes both bug fixes and thanks to Derek MacDonald a big improvement to Mail Localization. With the release of Laravel 5.7 the Illuminate\Notifications\Notification class started offering a locale method to set the desired language.
A common feature request from clients is the ability to export data to Excel, so they can create their own reports and a myriad of other things. Maatwebsite, the creators of Laravel Excel, recently launched a new Nova package named Laravel Nova Excel for just this purpose.
Laravel Mail Viewer is a package by Harish Toshniwal that enables you to view all the mailables in your Laravel application in a single place. The Design and content team members often need access to the emails your app will be sending out to the users.
LaRecipe is a code-driven package created by Saleem Hadad that provides an easy way to create beautiful documentation for your product or application inside your Laravel app using Markdown. To get started in your project, you need to install it via composer and run the setup command to publish the necessary assets and configuration: Out of the box, LaRecipe puts your documentation at the /docs URL, and you can version control your documentation alongside your application.