feat: factory creation and initial theme work

This commit is contained in:
2023-07-29 01:05:43 -05:00
parent 1833524f7f
commit 5c218918ee
213 changed files with 46351 additions and 1923 deletions

View File

@@ -3,6 +3,10 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Podcast;
use App\Models\Artist;
class OverlayFactory extends Factory
{
@@ -13,8 +17,14 @@ class OverlayFactory extends Factory
*/
public function definition()
{
$name = fake()->name();
$slug = Str::slug($name);
return [
//
'name' => $name,
'artist_id' => Artist::factory(),
'podcast_id' => Podcast::factory(),
'available' => fake()->boolean(),
'filename' => fake()->imageUrl(3000, 3000),
];
}
}