PHP code example of afs19 / filament-vertical-tabs
1. Go to this page and download the library: Download afs19/filament-vertical-tabs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
afs19 / filament-vertical-tabs example snippets
use Filament\Forms\Components\Tabs;
use Filament\Forms\Components\Tabs\Tab;
Tabs::make('Settings')
->vertical() // This activates the vertical tabs layout
->tabs([
Tab::make('General')
->icon('heroicon-o-cog')
->schema([
// Your form components here
]),
Tab::make('Notifications')
->icon('heroicon-o-bell')
->schema([
// Your form components here
]),
// Add more tabs as needed
]);
bash
php artisan vendor:publish --tag=filament-vertical-tabs-views