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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ class News extends Model
|
||||
'title',
|
||||
'slug',
|
||||
'content',
|
||||
'image',
|
||||
'published_at',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ class Solution extends Model
|
||||
'description',
|
||||
'slug',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ class Story extends Model
|
||||
'content',
|
||||
'published_at',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user