Download the PHP package wadakatu/laravel-factory-refactor without Composer
On this page you can find all versions of the php package wadakatu/laravel-factory-refactor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wadakatu/laravel-factory-refactor
More information about wadakatu/laravel-factory-refactor
Files in wadakatu/laravel-factory-refactor
Package laravel-factory-refactor
Short Description Refactor the style of factory call from helper to static method for Laravel 8.x.
License MIT
Homepage https://github.com/wadakatu/laravel-factory-refactor
Informations about the package laravel-factory-refactor
Laravel-Factory-Refactor
This package will help you to refactor the style of factory call from helper to static method for Laravel 10.x, 11.x, 12.x..
With this package, you can save plenty of time and focus on other important things.
Installation
Install the package via composer:
How to Use
To refactor the style of factory call from helper to static method, run the artisan command:
Options
By default, all factory call under tests/
directory are the target of refactoring.
If you want to change the target directory, you can do that by using the --dir
option.
By default, Tests\\
namespace is the target of refactoring.
If you want to change the target namespace, you can do that by using the --namespace
option.
Example
Before
After
License
The MIT License (MIT). Please see license file for more information.
All versions of laravel-factory-refactor with dependencies
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/console Version ^8.0|^9.0|^10.0
illuminate/filesystem Version ^8.0|^9.0|^10.0