2. Laravel Activity Log By Team Spatie - Model Events

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 35

  • @ajimahifeanyi2784
    @ajimahifeanyi2784 ปีที่แล้ว

    Nice. Thanks for this amazing video.

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 4 ปีที่แล้ว +1

    Keep it up! I love the package presentation series!

  • @brobersaudara3770
    @brobersaudara3770 4 ปีที่แล้ว

    thank sir, good explanation. i like this

  • @MahmoodAlFoqahaa
    @MahmoodAlFoqahaa 2 หลายเดือนก่อน

    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 ?

  • @Viveksharmaa
    @Viveksharmaa 4 ปีที่แล้ว +1

    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.

  • @AbdulazizAlzaabi
    @AbdulazizAlzaabi 4 ปีที่แล้ว

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

  • @didisquare2027
    @didisquare2027 ปีที่แล้ว

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

  • @SupRec
    @SupRec ปีที่แล้ว

    Thanks for the content buddy!

  • @wherami
    @wherami 4 ปีที่แล้ว

    excellent. thats some great functionality

  • @MauroRochat
    @MauroRochat ปีที่แล้ว

    Thanks man, you helped me a lot.

  • @tirits
    @tirits 4 ปีที่แล้ว +1

    great

    • @Bitfumes
      @Bitfumes  4 ปีที่แล้ว

      Thanks for your love and support, keep learning. Follow bitfumes on twitter.com/bitfumes or facebook.com/Bitfumes to get the latest updates.
      bitfumes.com

  • @livetabasco2796
    @livetabasco2796 4 ปีที่แล้ว +1

    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

  • @jojiejagonos7317
    @jojiejagonos7317 4 ปีที่แล้ว

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

  • @hendisantika
    @hendisantika 4 ปีที่แล้ว

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

  • @andykoe545
    @andykoe545 ปีที่แล้ว

    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?

  • @neerajsinghtangariya2587
    @neerajsinghtangariya2587 4 ปีที่แล้ว

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

  • @NveuFX
    @NveuFX 2 ปีที่แล้ว

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

  • @MarcelloPato
    @MarcelloPato 4 ปีที่แล้ว

    Very good!

  • @khanhvu6239
    @khanhvu6239 3 ปีที่แล้ว

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

  • @bru6626
    @bru6626 4 ปีที่แล้ว

    Will this work on laravel 7??

  • @hishamalalimi356
    @hishamalalimi356 4 ปีที่แล้ว

    thank's alooooot

  • @AdnanMalik-pk5hq
    @AdnanMalik-pk5hq 2 ปีที่แล้ว

    how to use this package with mongodb?

  • @mshamrok
    @mshamrok 3 ปีที่แล้ว

    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

  • @Chitorra98duriduridr
    @Chitorra98duriduridr 2 ปีที่แล้ว

    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 Spatie\Activitylog\Traits\LogsActivity;
    use Spatie\Activitylog\LogOptions;
    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 LogOptions::defaults()->logOnly(['*']);
    }
    }

  • @erikandribudiman8713
    @erikandribudiman8713 2 ปีที่แล้ว

    How to make Causer ID and Type to be filled?

  • @celaummm5998
    @celaummm5998 4 ปีที่แล้ว

    How to restore the backup?

  • @bondburton
    @bondburton 4 ปีที่แล้ว

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

    • @brobersaudara3770
      @brobersaudara3770 4 ปีที่แล้ว

      You can add the Traits "use LogsActivity" to the Model what do you want bro

  • @Ghummakad_bande
    @Ghummakad_bande ปีที่แล้ว

    How to save current logged user id

  • @vamshireddy3006
    @vamshireddy3006 4 ปีที่แล้ว

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

    • @chascachunga
      @chascachunga 3 ปีที่แล้ว

      did you find the solution?

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 ปีที่แล้ว

      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 Spatie\Activitylog\Traits\LogsActivity;
      use Spatie\Activitylog\LogOptions;
      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 LogOptions::defaults()->logOnly(['*']);
      }
      }

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 ปีที่แล้ว

      @@chascachunga 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 Spatie\Activitylog\Traits\LogsActivity;
      use Spatie\Activitylog\LogOptions;
      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 LogOptions::defaults()->logOnly(['*']);
      }
      }