PHP code example of ibrahim-bedir / filament-dynamic-settings-page
1. Go to this page and download the library: Download ibrahim-bedir/filament-dynamic-settings-page 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/ */
ibrahim-bedir / filament-dynamic-settings-page example snippets
return [
'title' => 'Settings',
'navigation' => [
'label' => 'Settings',
'group' => 'Settings',
'sort' => '1',
'icon' => 'heroicon-o-cog',
'folder' => 'settings'
],
'breadcrumbs' => [
'Settings',
],
'tool' => [
"enable" => false
],
'permission' => [
'enable' => false,
// permission name
// 'name' => 'list.settings'
'name' => ''
]
];
use IbrahimBedir\FilamentDynamicSettingsPage\Models\Setting;
function setting($key)
{
return Setting::where('key', $key)->first()->value('value');
}
...
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": [
"app/helpers.php"
]
},
...
composer dump-autoload
bash
php artisan filament-dynamic-settings-page:install