芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/nunomaduro/larastan/stubs/Factory.stub
*/ protected $model; /** * Get a new factory instance for the given attributes. * * @param callable|array
, mixed> $attributes * @return static */ public static function new($attributes = []) {} /** * Create a single model and persist it to the database. * * @param array
, mixed> $attributes * @return TModel */ public function createOne($attributes = []) {} /** * Create a collection of models and persist them to the database. * * @param iterable
, mixed>> $records * @return \Illuminate\Database\Eloquent\Collection
*/ public function createMany(iterable $records) {} /** * Create a collection of models and persist them to the database. * * @param array
, mixed> $attributes * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection
|TModel */ public function create($attributes = [], ?\Illuminate\Database\Eloquent\Model $parent = null) {} /** * Create a collection of models and persist them to the database without dispatching any model events. * * @param (callable(array
): array
)|array
$attributes * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection
|TModel */ public function createQuietly($attributes = [], ?\Illuminate\Database\Eloquent\Model $parent = null) {} /** * Make a single instance of the model. * * @param callable|array
, mixed> $attributes * @return TModel */ public function makeOne($attributes = []) {} /** * Create a collection of models. * * @param array
, mixed> $attributes * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection
|TModel */ public function make($attributes = [], ?\Illuminate\Database\Eloquent\Model $parent = null) {} /** * Make an instance of the model with the given attributes. * * @param \Illuminate\Database\Eloquent\Model|null $parent * @return TModel */ protected function makeInstance(?\Illuminate\Database\Eloquent\Model $parent) {} /** * Define the model's default state. * * @return array
, mixed> */ abstract public function definition(); /** * Add a new "after making" callback to the model definition. * * @param \Closure(TModel): mixed $callback * @return static */ public function afterMaking(\Closure $callback) {} /** * Add a new "after creating" callback to the model definition. * * @param \Closure(TModel): mixed $callback * @return static */ public function afterCreating(\Closure $callback) {} }