Archive for October, 2018

Building Package Installers

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.

Posted in php

Continue Reading

Laravel Console Task

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.

Posted in php

Continue Reading

Laravel 5.7.9 Released

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.

Posted in php

Continue Reading

Log Fake for Laravel

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.

Posted in php

Continue Reading

Laravel 5.7 Mail Localization Improvements

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.

Posted in php

Continue Reading

Hacktoberfest 2018

Hacktoberfest is back and this year its celebrating its fifth year! For those that are new to Hacktoberfest, it is a month-long festival of supporting and contributing to open-source.

Posted in php

Continue Reading