PHP code example of devpartner-technologies / laravel-filament-gallery
1. Go to this page and download the library: Download devpartner-technologies/laravel-filament-gallery 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/ */
devpartner-technologies / laravel-filament-gallery example snippets
use DevPartner\FilamentGallery\FilamentGalleryPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->default('admin')
// ...
->plugins([
FilamentGalleryPlugin::make()
->navigationGroup('Content Management') // Custom navigation group
->navigationIcon('heroicon-o-photo') // Custom icon
->navigationSort(2), // Menu position
]);
}
return [
'cache' => true,
'cache_ttl' => 86400, // Cache duration in seconds (24 hours)
];
bash
php artisan vendor:publish --tag="filament-gallery-migrations"
php artisan migrate
bash
php artisan migrate
bash
# Publish Configuration
php artisan vendor:publish --tag="filament-gallery-config"
# Publish Translations (en, hu)
php artisan vendor:publish --tag="filament-gallery-translations"
# Publish Views / Templates
php artisan vendor:publish --tag="filament-gallery-views"
bash
php artisan optimize:clear