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

@@ -3,6 +3,7 @@
namespace App\Filament\Pages;
use App\Settings\SolutionSettings;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Grid;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\Section;
@@ -33,6 +34,11 @@ class ManageSolutions extends SettingsPage
->label('Header')
->required()
->maxLength(255),
FileUpload::make('solutions_image')
->label('Image')
->image()
->directory('solutions')
->required(),
Grid::make()->schema([
TextInput::make('solutions_button_text')
->label('Button Text')