### Publish Filament Assets Source: https://github.com/josespinal/filament-record-navigation/blob/main/README.md Publish and build the necessary Filament assets after installing the plugin. ```bash php artisan filament:assets ``` -------------------------------- ### Install Filament Record Navigation Plugin Source: https://github.com/josespinal/filament-record-navigation/blob/main/README.md Require the Filament Record Navigation package using Composer to add it to your project dependencies. ```bash composer require josespinal/filament-record-navigation ``` -------------------------------- ### Publish and Optimize Filament Assets for Production Source: https://github.com/josespinal/filament-record-navigation/blob/main/README.md Publish and build Filament assets with optimization for production environments. ```bash php artisan filament:assets --optimize ``` -------------------------------- ### Add Record Navigation to Filament Edit Page Source: https://github.com/josespinal/filament-record-navigation/blob/main/README.md Use the HasRecordNavigation trait in your Filament resource's EditRecord page and add the navigation actions to the header. You can merge them with existing actions. ```php namespace App\Filament\Resources\PostResource\Pages; use App\Filament\Resources\PostResource; use Filament\Resources\Pages\EditRecord; use JoseEspinal\RecordNavigation\Traits\HasRecordNavigation; class EditPost extends EditRecord { use HasRecordNavigation; protected static string $resource = PostResource::class; protected function getHeaderActions(): array { return array_merge(parent::getActions(), $this->getNavigationActions()); } } ``` -------------------------------- ### Enable Relation Manager Refresh with Record Navigation Source: https://github.com/josespinal/filament-record-navigation/blob/main/README.md Use the HasRelationManagersWithRecordNavigation trait in your relation managers to automatically refresh them when navigating between records. ```php namespace App\Filament\Resources\PostResource\RelationManagers; use Filament\Resources\RelationManagers\RelationManager; use JoseEspinal\RecordNavigation\Traits\HasRelationManagersWithRecordNavigation; class CommentsRelationManager extends RelationManager { use HasRelationManagersWithRecordNavigation; protected static string $relationship = 'comments'; // Rest of your relation manager code... } ``` -------------------------------- ### Store Record IDs in Filament List Page Source: https://github.com/josespinal/filament-record-navigation/blob/main/README.md Include the HasRecordsList trait in your resource's ListRecords page to enable storing record IDs in the session for navigation. ```php namespace App\Filament\Resources\PostResource\Pages; use App\Filament\Resources\PostResource; use Filament\Resources\Pages\ListRecords; use JoseEspinal\RecordNavigation\Traits\HasRecordsList; class ListPosts extends ListRecords { use HasRecordsList; protected static string $resource = PostResource::class; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.