osb/app/Traits/FactoryActiveTrait.php

18 lines
233 B
PHP
Raw Normal View History

<?php
/**
* A Factory State that makes a record active.
*/
namespace App\Traits;
trait FactoryActiveTrait
{
final public function active()
{
return $this->state(function () {
return [
'active' => TRUE,
];
});
}
}