mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
19 lines
398 B
PHP
19 lines
398 B
PHP
<?php
|
|
|
|
use App\Concert;
|
|
|
|
class ConcertFactory
|
|
{
|
|
public static function createPublished($overrides = [])
|
|
{
|
|
$concert = factory(Concert::class)->create($overrides);
|
|
$concert->publish();
|
|
return $concert;
|
|
}
|
|
|
|
public static function createUnpublished($overrides = [])
|
|
{
|
|
return factory(Concert::class)->states('unpublished')->create($overrides);
|
|
}
|
|
}
|