New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

soyhuce/laravel-8-factories

Laravel 8 factories for Laravel 7
2,291 3
Install
composer require soyhuce/laravel-8-factories
Latest Version:0.2.1
PHP:^7.3|^8.0
Laravel:7
License:MIT
Last Updated:Jan 22, 2021
Links: GitHub  ·  Packagist
Maintainer: SoyHuCe

Laravel 8 model factories for Laravel 7

Latest Version on Packagist Total Downloads

This package is an extraction of class-based Laravel 8 model factories in order to use them in Laravel 7.

Installation

You should install this package using composer :

composer require --dev soyhuce/laravel-8-factories

Then, publish factory stub

mkdir -p stubs
cp vendor/soyhuce/laravel-8-factories/assets/factory.stub stubs/factory.stub

Add in your composer.json autoload-dev psr-4 configuration

"autoload-dev": {
    "psr-4": {
        "Database\\Factories\\": "database/factories"
    }
},

Documentation

There is not documentation yet but feel free to contribute in laravel/doc repository.

Bugs

The only goal of this project is being able to use Laravel 8 model factories. If it has some bugs, please report them in laravel/framework.

Contributing

You can contribute on model factories directly on laravel/framework.

If this package needs to be updated, feel free to PR. A composer update-sources command is available for this.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP Laravel License
0.2.1 ^7.3|^8.0 ^7.0 MIT
0.2.0 ^7.3|^8.0 ^7.0 MIT
0.1.8 ^7.2.5 ^7.0 MIT
0.1.7 ^7.2.5 ^7.0 MIT
0.1.6 ^7.2.5 ^7.0 MIT