feat: prepping launch

This commit is contained in:
2023-12-14 11:30:49 -06:00
parent c352d4d273
commit 2ec4405b7b
49 changed files with 3006 additions and 182 deletions

View File

@@ -5,12 +5,13 @@ namespace Database\Factories;
use App\Models\Artist;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Str;
class ArtistFactory extends Factory
{
/**
* The name of the factory's corresponding model
*
*
* @var string
*/
protected $model = Artist::class;
@@ -22,9 +23,12 @@ class ArtistFactory extends Factory
*/
public function definition()
{
$name = fake()->name();
$slug = Str::slug(strtolower(trim($name)));
return [
'user_id' => User::factory(),
'name' => fake()->name(),
'name' => $name,
'slug' => $slug,
'avatar' => fake()->imageUrl(512, 512),
'header' => fake()->imageUrl(270, 185),
'location' => fake()->city() . ', ' . fake()->state(),