PHP code example of michael4d45 / context-logging-filament-ui
1. Go to this page and download the library: Download michael4d45/context-logging-filament-ui 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/ */
michael4d45 / context-logging-filament-ui example snippets
use Michael4d45\ContextLoggingFilamentUi\ContextLoggingFilamentUiPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
ContextLoggingFilamentUiPlugin::make()
->navigationLabel('Log Explorer')
->navigationSort(90)
// ->canAccess(fn (): bool => auth()->user()?->isAdmin() ?? false)
);
}
css
@source '../../../../vendor/michael4d45/context-logging-filament-ui/resources/**/*.blade.php';