Giter VIP home page Giter VIP logo

filament-laravel-log's People

Contributors

albertofuentes avatar amiraghaee avatar awcodes avatar dependabot[bot] avatar gergo85 avatar github-actions[bot] avatar juliomotol avatar malzariey avatar mileswucode avatar saade avatar sitenzo avatar ysfkaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

filament-laravel-log's Issues

Publish config file command doesn't work

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:

Capture d’écran 2022-06-02 à 10 56 53

In authorization auth()->user() returns null

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?

Exception: Target class [hash] does not exist

Hi,

Thanks for creating this plugin, I believe it's very useful!

One thing I discovered is when I add this callback for the authorize() method an Exception is thrown:

        ->authorize(
            fn () => auth()->user()->hasRole('super_admin')
        ),

This is the Exception:
image

Any clues on why this is happening?

logDirs([]) not working.

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?

image

Basically, this is how I have implemented it. Each of the two directories has one log file. Neither is seen.

Facade is triggering errors when updating IDE Helper files

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.