saade / filament-laravel-log Goto Github PK
View Code? Open in Web Editor NEWRead Laravel logs from the Filament admin panel
Home Page: https://filamentphp.com/plugins/saade-laravel-log
License: MIT License
Read Laravel logs from the Filament admin panel
Home Page: https://filamentphp.com/plugins/saade-laravel-log
License: MIT License
Hello,
Thanks for your package, it's really neat!
There is an error in the readme regarding the publish file command though:
php artisan vendor:publish --tag="filament-laravel-log-config"
This returned the following error message:
No publishable resources for tag [filament-laravel-log-config].
The command to publish assets for me were the following:
php artisan vendor:publish --tag="log-config"
php artisan vendor:publish --tag="log-translations"
php artisan vendor:publish --tag="log-views"
I had to look for the proper one by using the generic 'vendor:publish' command, as you can see below:
Maybe I'm missing something, but here goes.
According to the documentation, I could do something like this:
FilamentLaravelLogPlugin::make()
->authorize(
fn () => auth()->user()->isAdmin()
)
However, the return from auth()->user() is always null. Apparently, in the life cycle, the providers are analyzed before the laravel framework retrieves the authenticated user's data.
Therefore, there is no way to do any checking there, since the user is not yet available.
Am I forgetting something or is there a bug here?
Hello, this is a very nice package.
However, I am unable to set custom log directories using the given method. It just falls back to the default "logs".
Has anyone else faced the same issue before?
Basically, this is how I have implemented it. Each of the two directories has one log file. Neither is seen.
I believe the Facade \Saade\FilamentLaravelLog\Facades\FilamentLaravelLog
isn't set up correctly because composer complains about it every time when it updates files for my IDE Helper:
> @php artisan ide-helper:generate
Exception: Target class [filament-laravel-log] does not exist.
Skipping \Saade\FilamentLaravelLog\Facades\FilamentLaravelLog.
Exception: Target class [filament-laravel-log] does not exist.
Skipping \Saade\FilamentLaravelLog\Facades\FilamentLaravelLog.
Is the Facade actually needed or useful?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.