PHPackages                             meops/laravel-populate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. meops/laravel-populate

ActiveLibrary[Database &amp; ORM](/categories/database)

meops/laravel-populate
======================

Populate the DB in your Laravel application

1.0.4(1y ago)025MITPHPPHP ^8.2|^8.3CI passing

Since Nov 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/meops/laravel-populate)[ Packagist](https://packagist.org/packages/meops/laravel-populate)[ RSS](/packages/meops-laravel-populate/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

Laravel Populate
================

[](#laravel-populate)

[![Packagist](https://camo.githubusercontent.com/bb58e76c8b270757d079606614a1ebb994f65011567872e83a2a31c5cfe2ba44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656f70732f6c61726176656c2d706f70756c6174652e737667)](https://packagist.org/packages/meops/laravel-populate)[![Tests](https://github.com/meops/laravel-populate/actions/workflows/test.yml/badge.svg)](https://github.com/meops/laravel-populate/actions)

An Artisan command for populating your database. It allows you to quickly create records in your database using the model factories you have already defined in your Laravel application without writing seeders.

Installation
------------

[](#installation)

Install the package as a development dependency:

```
composer require --dev meops/laravel-populate
```

Usage
-----

[](#usage)

Records are created by specifying the model whose factory definition should be used to generate field values.

### Create a single record

[](#create-a-single-record)

The first argument specifies the model to create. The package will look for a matching model name in the `App/Models` directory by default:

```
php artisan db:populate User
```

Use double backslashes to escape slashes in a fully qualified class name:

```
php artisan db:populate MyNamespace\\User
```

### Create multiple records

[](#create-multiple-records)

The second argument is optional and specifies the number of records to create:

```
php artisan db:populate User 10
```

### Create multiple records with custom data

[](#create-multiple-records-with-custom-data)

Specify any fields whose values should be overriden using the `-o` option with the format `field=value`. Multiple fields can be overriden by providing multiple `-o` options.

```
php artisan db:populate User -o email=me@example.com -o password=secret
```

Prerequisites
-------------

[](#prerequisites)

Any model you wish to populate must have a factory defined.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance43

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Total

4

Last Release

452d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/132153284?v=4)[meops](/maintainers/meops)[@meops](https://github.com/meops)

---

Top Contributors

[![meops](https://avatars.githubusercontent.com/u/132153284?v=4)](https://github.com/meops "meops (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/meops-laravel-populate/health.svg)

```
[![Health](https://phpackages.com/badges/meops-laravel-populate/health.svg)](https://phpackages.com/packages/meops-laravel-populate)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
