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 1mo ago

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

32

—

LowBetter than 72% of packages

Maintenance46

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a250ee2befabf6b6666d3cf707dd91ba5efa6fe7437b52ff97da75b93ac8c9e?d=identicon)[meops](/maintainers/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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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