feat: Inertia profile settings page, Studio edit redesign, EGS, Nova UI components\n\n- Redesign /dashboard/profile as Inertia React page (Settings/ProfileEdit)\n with SettingsLayout sidebar, Nova UI components (TextInput, Textarea,\n Toggle, Select, RadioGroup, Modal, Button), avatar drag-and-drop,\n password change, and account deletion sections\n- Redesign Studio artwork edit page with two-column layout, Nova components,\n integrated TagPicker, and version history modal\n- Add shared MarkdownEditor component\n- Add Early-Stage Growth System (EGS): SpotlightEngine, FeedBlender,\n GridFiller, AdaptiveTimeWindow, ActivityLayer, admin panel\n- Fix upload category/tag persistence (V1+V2 paths)\n- Fix tag source enum, category tree display, binding resolution\n- Add settings.jsx Vite entry, settings.blade.php wrapper\n- Update ProfileController with JSON response support for API calls\n- Various route fixes (profile.edit, toolbar settings link)"
This commit is contained in:
40
database/factories/BlogPostFactory.php
Normal file
40
database/factories/BlogPostFactory.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\BlogPost;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
/**
|
||||
* @extends Factory<BlogPost>
|
||||
*/
|
||||
final class BlogPostFactory extends Factory
|
||||
{
|
||||
protected $model = BlogPost::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
$title = $this->faker->sentence(5);
|
||||
|
||||
return [
|
||||
'slug' => Str::slug($title) . '-' . $this->faker->unique()->numberBetween(1, 99999),
|
||||
'title' => $title,
|
||||
'body' => '<p>' . implode('</p><p>', $this->faker->paragraphs(3)) . '</p>',
|
||||
'excerpt' => $this->faker->sentence(15),
|
||||
'author_id' => null,
|
||||
'featured_image' => null,
|
||||
'meta_title' => null,
|
||||
'meta_description' => null,
|
||||
'is_published' => true,
|
||||
'published_at' => $this->faker->dateTimeBetween('-1 year', 'now'),
|
||||
];
|
||||
}
|
||||
|
||||
public function draft(): static
|
||||
{
|
||||
return $this->state(['is_published' => false, 'published_at' => null]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user