Refactor file imports and clean up unused components in various resources: remove unnecessary imports in CommentResource, NewsResource, and SolutionResource, and ensure consistent formatting across files. Add missing newlines at the end of files for better code quality.
This commit is contained in:
1 parent
b23f537086
commit
e2323c7949
18 files changed
+287
-291
No files matched your search
@@ -13,12 +13,13 @@ class NewsFactory extends Factory
|
||||
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),
|
||||
'image' => 'news/'.$this->faker->image('public/storage/news', 640, 480, null, false),
|
||||
'published_at' => $this->faker->dateTimeBetween('-1 year', 'now'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user