Update project dependencies and configuration
- Added Filament and Tailwind CSS dependencies in composer.json. - Updated AGENTS.md to include new package versions. - Modified boost.json to include tailwindcss-development skill. - Updated DatabaseSeeder to create an admin user with a password. - Changed the root route to use HomeController instead of a closure. - Adjusted permissions for .gitignore in storage directory.
This commit is contained in:
40
app/Filament/Pages/GeneralSettings.php
Normal file
40
app/Filament/Pages/GeneralSettings.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Pages\SettingsPage;
|
||||
use App\Settings\GeneralSettings as Settings;
|
||||
|
||||
class GeneralSettings extends SettingsPage
|
||||
{
|
||||
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-cog-6-tooth';
|
||||
|
||||
protected static string $settings = Settings::class;
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('marquee_text')
|
||||
->required(),
|
||||
TextInput::make('about_title')
|
||||
->required(),
|
||||
Textarea::make('about_text')
|
||||
->required(),
|
||||
FileUpload::make('about_image')
|
||||
->image()
|
||||
->visibility('public')
|
||||
->directory('settings'),
|
||||
Textarea::make('footer_address')
|
||||
->required(),
|
||||
TextInput::make('footer_phone')
|
||||
->required(),
|
||||
TextInput::make('footer_copyright')
|
||||
->required(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user