Add solutions image upload field and update settings: introduce a file upload component for solutions images in ManageSolutions, add solutions_image property to SolutionSettings, and update related database migrations and views to support dynamic image display.

This commit is contained in:
2025-07-28 17:43:05 +05:00
parent bae4204d44
commit 2d1c7ea4f9
10 changed files with 58 additions and 76 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\News;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class NewsFactory extends Factory
{
protected $model = News::class;
public function definition()
{
$title = $this->faker->sentence(6);
return [
'title' => $title,
'slug' => Str::slug($title),
'content' => $this->faker->paragraphs(3, true),
'image' => 'news/' . $this->faker->image('public/storage/news', 640, 480, null, false),
'published_at' => $this->faker->dateTimeBetween('-1 year', 'now'),
];
}
}