Create Dummy Data Using Laravel Tinker
In this example we can see hows to add multiple dummy records in database at a time using tinker and factory, mostly laravel tinker command is use for testing purpose.
whenever developers are developing application then they need to test many modules like insert update delete is working or not, pagination is working or not, filters are working properly and other functionalities.
So, all these modules we can not add data manually every time it is very boring task to add record one by one, but laravel provide very useful command that is tinker and factory using this command.
we can add multiple dummy data at a time without using route or any controller, just type some code of command and that's it you can found bunch of records in your database.
So let's start.