Logging Laravel Auth Events: Logged In-Out, Register, etc.

preview_player
Показать описание
Laravel fires quite a lot of Auth events that you can "catch" and listen to. Let's implement some of them, based on a public Gist I saw on Twitter.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

I use the Spatie activity log package for this to log all events. It’s so useful, I use it for every project. I couldn’t live without it!

phoenixedge
Автор

Yesss! That's exactly what my boss assigned me to do. Thanks, Man. I really love this channel lot.

ripon
Автор

Nice vid as always, Povilas. Thanks! Just a heads-up from a native English speaker. The word “gist” is pronounced with a soft ‘G’ like the word “gin.” So more like it would be spelled “jist”.

theceilidhboy
Автор

can you please make a review on spatie / laravel-settings or maybe tell us what is the best way to have settings for your application that can be manipulated and thanks ! i love your videos <3

ayoubmallek
Автор

Thank you.

How to add this to database and allow each user to view their log activities and allow admin to view for every user?

jekayode
Автор

Thank you for your content

Would you consider making a course on DDD (DTO, ViewModel, VOs...etc)

Thank you so much... we learn a lot from you :)

millennia
Автор

I use Observers for CRUD logs, Is that bad ?

ailtondevesse
Автор

hello sir i want to ask about the problem i have encountered. I tried to run the command: 1 npm install 2 npm run dev it works normally, but when i stop npm run dev and run 'npm run build' it doesn't work sir. I get the error message "unable to locate file in Vite manifest: resource/scss/app.scss." is there any solution sir?

searchable
Автор

Putting personal information in log files is a terrible idea. What are you going to do when a user requests to see all information you have about them as per the GDPR, or worse, delete all information about them? The idea to use events for logging is not too bad, but don't log sensitive information. Obfuscate it or only log id's / references.

davelemmens