You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon installing this package, if I haven't already installed and set up spatie/laravel-activitylog, I want this package to make it easier for me to implement the most common scenario.
I want to run php artisan backpack:activity-log:create-trait, and it will create this:
<?phpnamespaceApp\Models\Traits;
useSpatie\Activitylog\LogOptions;
useSpatie\Activitylog\Traits\LogsActivityasOriginalLogsActivity;
trait LogsActivity
{
use OriginalLogsActivity;
/** * Spatie Log Options * By default will log only the changes between fillables * * @return LogOptions */publicfunctiongetActivitylogOptions(): LogOptions
{
return LogOptions::defaults()->logAll()->logOnlyDirty();
}
}
The text was updated successfully, but these errors were encountered:
Upon installing this package, if I haven't already installed and set up
spatie/laravel-activitylog
, I want this package to make it easier for me to implement the most common scenario.I want to run
php artisan backpack:activity-log:create-trait
, and it will create this:The text was updated successfully, but these errors were encountered: