Last active
November 11, 2021 21:44
-
-
Save lepikhinb/d8c81fced853d7ef77b386103052197c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace {{ factoryNamespace }}; | |
use Illuminate\Database\Eloquent\Factories\Factory; | |
use {{ namespacedModel }}; | |
/** | |
* @method {{ model }}|\Illuminate\Support\Collection<{{ model }}> create($attributes = [], ?Model $parent = null) | |
* @method \Illuminate\Support\Collection<{{ model }}> createMany(iterable $records) | |
* @method {{ model }} createOne($attributes = []) | |
* @method {{ model }}|\Illuminate\Support\Collection<{{ model }}> make($attributes = [], ?Model $parent = null) | |
* @method {{ model }} makeOne($attributes = []) | |
*/ | |
class {{ factory }}Factory extends Factory | |
{ | |
protected $model = {{ model }}::class; | |
public function definition() | |
{ | |
return [ | |
// | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment