Sarthak Garg
Sarthak Garg
FFilament
Created by Sarthak Garg on 7/5/2024 in #❓┊help
Multi-use form section??
Yes it's possible to do. Create the Form Component: Open your terminal or command prompt. Navigate to your Laravel project directory. Run the following command to generate a new Filament component: php artisan make:filament-component CommonFormComponent Then edit the component created // app/Filament/Components/CommonFormComponent.php namespace App\Filament\Components; use Filament\Forms\Component; use Filament\Forms\Components\TextInput; class CommonFormComponent extends Component { public function fields() { return [ TextInput::make('name') ->label('Name'), TextInput::make('email') ->label('Email'), TextInput::make('phone') ->label('Phone Number'), ]; } } Then, use it in your resource page // app/Filament/Pages/UserPage.php namespace App\Filament\Pages; use App\Filament\Components\CommonFormComponent; use Filament\Forms\Components\Grid; use Filament\Forms\Components\Tab; class UserPage extends Page { public function form() { return Grid::make() ->columns( Tab::make('Details', [ CommonFormComponent::make(), // Other form components specific to this page ]), ); } } Then, register inside the filament service provider // app/Providers/FilamentServiceProvider.php use App\Filament\Components\CommonFormComponent; protected $components = [ CommonFormComponent::class, // Other custom components ];
2 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
all files are outside public _ html, and public folder files inside public_html
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
this is also not working bro
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
as mentioned in document of livewire. I put all files outside public-html. And all public folder files as per laravel directory I put in public-html, when I am running the command of php artisan storage link. It is throwing an error, Even I tried it manually. But still it won't worked using this command @Tally
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
can u please guide me what will be the correct.? if u dont mind
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
but it is not working, i tried, and also symlink is enabled in hostinger @Dennis Koch
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
No description
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
Even I tried it manually. But still it won't worked using this command ln -s storage/app/public/customer-attachments public_html/storage/customer-attachments
26 replies
FFilament
Created by Sarthak Garg on 5/13/2024 in #❓┊help
php artisan storage:link
@Dennis Koch as mentioned in document of livewire. I put all files outside public-html. And all public folder files as per laravel directory I put in public-html, when I am running the command of php artisan storage link. It is throwing an error,
26 replies