Laravel 5: Creating Eloquent Models for Testing With factory
The factory function is used to create Eloquent models, and is generally used when testing an application to generate sample data.The signature of the factory function is: 1 function factory ( 2 $ class 3 ) ; 4 5 function factory ( 6 $ class , 7...