Refactor form components across multiple pages: enforce required validation on various text inputs and file uploads in HomePageSettings, ManagePortfolio, ManageSite, ManageSiteSocialSettings, ManageSolutions, ManageSuccess, and update the news index view to display dynamic content.

This commit is contained in:
2025-07-28 17:14:40 +05:00
parent 1ceccb0d79
commit bae4204d44
29 changed files with 360 additions and 50 deletions

View File

@@ -9,7 +9,7 @@ use Illuminate\Support\Facades\Storage;
* @property int $id
* @property string $name
* @property string $image
* @property boolean $active
* @property bool $active
* @property \Illuminate\Support\Facades\Date $created_at
* @property \Illuminate\Support\Facades\Date $updated_at
*/
@@ -17,6 +17,7 @@ class Brand extends Model
{
/**
* Casts
*
* @var array<string, string>
*/
protected $casts = [
@@ -40,6 +41,6 @@ class Brand extends Model
*/
public function imageUrl(): string
{
return url('/storage/' . $this->image);
return url('/storage/'.$this->image);
}
}

View File

@@ -13,6 +13,7 @@ class News extends Model
'title',
'slug',
'content',
'image',
'published_at',
];
}
}

View File

@@ -14,4 +14,4 @@ class Solution extends Model
'description',
'slug',
];
}
}

View File

@@ -15,4 +15,4 @@ class Story extends Model
'content',
'published_at',
];
}
}