Laravel 5 Tutorial For Beginners Part 10: Learn about Laravel 5 Faker an...





Hello Friends,

In this video, you are going toLearn about Laravel 5 Faker and Tinker Utilities.



When testing, you may need to insert a few records into your database before executing your test. Instead of manually specifying the value of each column when you create this test data, Laravel allows you to define a default set of attributes for each of your Eloquent models using model factories. To get started, take a look at the database/factories/ModelFactory.php file in your application. Out of the box, this file contains one factory definition:



All Laravel applications include Tinker, a REPL powered by the PsySH package. Tinker allows you to interact with your entire Laravel application on the command line, including the Eloquent ORM, jobs, events, and more. To enter the Tinker environment, run the tinker Artisan command:



If you like the video, then please do like the video and do subscribe to my channel for more videos.



Visit our Fan page on Facebook: https://www.facebook.com/perfectwebsolutions

Visit our Fan Page on Twitter: @pwspkjlm

Visit our Official Website: http://perfectwebsolutions.info/
Theme images by fpm. Powered by Blogger.