2. Laravel Activity Log By Team Spatie - Model Events

preview_player
Показать описание
Working on Model Events
Excellent work on #laravel #activitylog #package by Spatie team and Freek ( @freekspatie )

The Spatie Laravel Activitylog package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events. All activity will be stored in the activity_log table.

Laravel Activity Log Useful Links:

======================= Ad Free Tutorials ======================

==================FOLLOW ME ==================

Subscribe for New Releases!

(ask me questions!)

--- QUESTIONS? ---

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support!
Рекомендации по теме
Комментарии
Автор

Keep it up! I love the package presentation series!

ProgrammingwithPeter
Автор

To add a relationship with any model, simply add a subject relationship.

didisquare
Автор

thank sir, good explanation. i like this

brobersaudara
Автор

excellent. thats some great functionality

wherami
Автор

thank you dear, but I have question, how can I set the causer to be another model globally for all logs that will be logged in the model events ?

MahmoodAlFoqahaa
Автор

Thanks .. what about views? Does have ready views to a show activity logs or you need to build your own views ?

AbdulazizAlzaabi
Автор

Thanks for amazingly explained video.

I am eager to know, what visual studio package you are using for auto suggestions. Like when you write LogsActivity, it suggest you about the LogsActicity resourses and auto import on top.

Pls guide, it would be very helpful.

Viveksharmaa
Автор

I am following everything from your video but it does not update properties column it just an empty. What went wrong, can't figure out? Can you please help me? Thanks

livetabasco
Автор

Hi, i am using activity log as trait and use that trait in all model, the problem is i cant use $logName and pass it to trait, any idea of doing this?

andykoe
Автор

You try to give the video more brightness it will be great if you do

khanhvu
Автор

how to get property attribute? because i want to get attribute to show to view

NveuFX
Автор

Hi, What if We want to save email address to the activity log. Is that possible?
How We can do that?

Thanks

hendisantika
Автор

Hello Sir,

Would it be possible to change the column names of the activity_logs table ? thank you

jojiejagonos
Автор

Thanks , I have tried it works perfect, but for Arabic it is not showing the right char how do encode the Arabic to be viewed in blade

mshamrok
Автор

How to make Causer ID and Type to be filled?

erikandribudiman
Автор

Hlw sir,
sir could you plz tell us, In laravel is there any theme system like wordpress...?

neerajsinghtangariya
Автор

For Laravel v9 and ActivityLog v4
Im doing this tutorial without tinker, im using the views Blade... Its almost the same think. Just kind of custom code be cause the ActivityLog package update...

use
use

class YourModel extends Authenticable
{

use LogsActivity;

protected $fillable = [
'x',
'y',
'z',
];

//This function is important, if you dont add this function it will be fail
public function getActivitylogOptions(): LogOptions
{
return
}

}

Chitorraduriduridr
Автор

If I want to change to another modal not App/User how can I do?

bondburton
Автор

how to store changed (created / updated / deleted) attributes in controller (without using tinker).

vamshireddy