Factory Callbacks and Closure-Based Guards in Laravel

Two undocumented (before today anyhow) features were recently added to the Laravel 5.6 documentation, and they are both fantastic! First, factory callbacks allow you to perform additional tasks after making or creating a model: Thanks to @driesvints for documenting this handy new feature pic.twitter.com/UZ01NxR6yz Taylor Otwell ???????? (@taylorotwell) June 7, 2018

Read Full Article at https://laravel-news.com/factory-callbacks-closure-based-guards

Tags: , , , , , , , ,