bolechen / nova-activitylog Goto Github PK
View Code? Open in Web Editor NEWA tool to activity logger to monitor the users of your Laravel Nova.
License: MIT License
A tool to activity logger to monitor the users of your Laravel Nova.
License: MIT License
It seems that i missed some settings because nothing will be logged. I thought that your package log alle activities on all resources?!
composer update
Problem 1
- Root composer.json requires bolechen/nova-activitylog ^0.2.1 -> satisfiable by bolechen/nova-activitylog[v0.2.1].
- bolechen/nova-activitylog v0.2.1 requires laravel/nova ^2.0|^3.0 -> satisfiable by laravel/nova[3.x-dev (alias of dev-master)] from lock repo but laravel/nova[dev-develop] from path repo (./nova) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 2
- nemrutco/nova-filterable-metrics[v1.1.0, ..., v1.1.4] require laravel/nova >=2.0 -> satisfiable by laravel/nova[3.x-dev (alias of dev-master)] from lock repo but laravel/nova[dev-develop] from path repo (./nova) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- Root composer.json requires nemrutco/nova-filterable-metrics ^1.1 -> satisfiable by nemrutco/nova-filterable-metrics[v1.1.0, ..., v1.1.4].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Ahoy there
I didn't find the same question hence me asking now: I am facing the issue that I can see the Actitiy Log menu in Nova 4 fine locally
But as soon as I am uploading it (via Vapor), the menu entry is gone and trying to access it directly leads to a 404.
I do not see any configuration or value which could cause this here, but maybe I am missing something.
I just added it as Tools, as in the README, and locally all is fine. I just am lacking an idea why it won't show up on staging.
Does anybody has an idea or hint where to look for?
Thanks a lot
Hello,
Any idea how to create an Authorization policy for this package?
Sidebar label not changing with
public static function label(){}
Page title however is respecting this method override.
Nice article.
Can We get more details information like Who do changes, email etc.
Those are really helpful.
Thanks
This happens after running
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations
Hi and thanks for this package @bolechen
The spatie/laravel-activitylog package is now on version 4 and the current requirement is "^3.9.1".
Do you plan on updating it? From what I've seen it doesn't look nice changes are necessary.
Hi. Can you make the activity log fields read only?
Or at least make a config file option to make them read only?
The app should depend packages, but a package should not be dependent from the app.
...
namespace Bolechen\NovaActivitylog\Resources;
use Laravel\Nova\Resource;
...
The resource should use the model returned by ActivitylogServiceProvider::determineActivityModel()
instead of the hardcoded string.
Any plans to add support for Nova 4.0?
I've made a local resource by extending your class,
e.g. class ActivityLog extends \Bolechen\NovaActivitylog\Resources\Activitylog
to try and override the filters function to add my own filter.
How do I get your nova tool to use my local ActivityLog (with filters) instead of the one in your package?
Thanks for the package.
Question, is there an easy way to add the Activity log relation ship to the Nova User resource based on the user model so that we can see all activity log of the user when going to the user details view. Thanks!
Is there an easy way to record nova log ins?
There's no obvious auth classes for nova.
How to track changes through the model's static::creating() method?
The sample code from the model, logic execution and data change in the database is not tracked here:
public static function boot()
{
parent::boot();
static::creating(function (Cost $cost) {
//
User::update[
//
];
}
}
To 6
Thanks for this package :)
Is it possible to disable create and remove the "Create Activity Log" button as well as disabling the replicate feature?
Thank you!
I created the PR #14
Hi! Thanks a lot for this nova package!
Could you please help me to override your Activitylog resource? Trying within NovaServiceProvider or my custom service provider - no success...
I would override fields method to output user name instead of id, but can't find the way. Maybe you could help...
Thanks!
In fields for the ActivityLog resource: MorphTo::make('Causer', 'causer'),
doesn't return a displayable value. It simply shows a dash for all activities. Meanwhile the database has the correct causer type and causer id.
Did you need to add anything to the user model to accept the relationship? or to the Nova User resource?
I only want to use the package to display activities in Nova, not to actually log anything. Is it possible to not have the package interact with my front end app?
I get this error when I switched to use my own model with activity logger. Ideas? Thanks!
Bolechen\NovaActivitylog\ToolServiceProvider::Bolechen\NovaActivitylog\{closure}(): Argument #1 ($activity) must be of type Spatie\Activitylog\Models\Activity, App\Models\Activity given, called in /vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php on line 421
For example, how can some users not be able to edit and delete entries?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.