DEV Community


Posted on • Originally published at

Create Dummy Data Using Tinker In Laravel

In this example we will see how to create dummy data/records using tinker in laravel.

laravel tinker is used for adding dummy records in database. 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.

Read More : Create Dummy Data Using Tinker In Laravel

You May Also Like :

Read More : Import Export CSV/EXCEL File In Laravel

Discussion (0)