Upgraded testing to Laravel 8 - disabled most tests pending code optimisation
This commit is contained in:
18
app/Traits/FactoryActiveTrait.php
Normal file
18
app/Traits/FactoryActiveTrait.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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,
|
||||
];
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user