Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move into Laravel 10 #165

Open
2 of 5 tasks
NuwanJ opened this issue Oct 9, 2024 · 0 comments
Open
2 of 5 tasks

Move into Laravel 10 #165

NuwanJ opened this issue Oct 9, 2024 · 0 comments

Comments

@NuwanJ
Copy link
Member

NuwanJ commented Oct 9, 2024

Consider the following changes:

Add any error in here and fix one by one

use Spatie\Activitylog\LogOptions;

...

    public function getActivitylogOptions(): LogOptions {
        return LogOptions::defaults()
            ->useLogName('MODEL_NAME') // Set a custom log name
            ->setDescriptionForEvent(fn (string $eventName) => "This semester has been {$eventName}.")
            ;
    }
  • ...
  • ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant