Comments (3)
However you'd need to manually hook up the policy generated by shield to spaites Activity Model.
Since Activity Model is in a package laravel doesn't automatically pickup the policy for it
Do this in your AuthServiceProvider
and it should work
<?php
namespace App\Providers;
use Spatie\Activitylog\Models\Activity;
use App\Policies\ActivityPolicy;
class AuthServiceProvider extends ServiceProvider
{
protected $policies = [
Activity::class => ActivityPolicy::class, // <- add this
];
public function boot()
{
$this->registerPolicies();
}
}
from filament-logger.
Hi, filament-shield should already automatically pickup the ActivityResource
from this package and generate permissions for it.
However you'd need to manually hook up the policy generated by shield to spaites Activity
Model
Is this what you are asking or have i misunderstood the question?
from filament-logger.
the policy generated by shield to spaites Activity Model is already in there but the Resource is still showing up.
from filament-logger.
Related Issues (20)
- Custom theme colors don't work HOT 1
- make the activity logs searchable HOT 1
- Stop password from being logged? HOT 1
- show original values in the update event HOT 1
- Unable to locate a class or view for component [filament-logger::filament-logger.nav.log.icon]. HOT 1
- Error: Data truncated for column 'subject_id' at row 1 HOT 2
- Cannot upgrade to Laravel 10 HOT 2
- HTML tags is visible
- Old props not being saved in properties column
- Translation not translate in filter
- Mobile responsive in View Activity
- Table row disabling clickable not working HOT 5
- My App no logger able to login after installing logger HOT 2
- Package not using the authentication guard setup in filament config HOT 7
- getLoggableAttributes() error on delete method HOT 2
- Filament v3 support? HOT 4
- Hero icon not found HOT 2
- User context not shown in filament page but saved in db HOT 2
- Missing saved old value when update a resource HOT 2
- sqlite database migration not working due to this plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament-logger.