We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class ForgetCachedPermissions { /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return \Illuminate\Http\Response */ public function handle($request, $next) { $response = $next($request); if ($request->is('nova-api/*/detach') || $request->is('nova-api/*/*/attach/*')) { ##This is my attach url: http://127.0.0.1:8000/nova-api/admins/1/attach-morphed/permissions $permissionKey = (Nova::resourceForModel(app(PermissionRegistrar::class)->getPermissionClass()))::uriKey(); if ($request->viaRelationship === $permissionKey) { app(PermissionRegistrar::class)->forgetCachedPermissions(); } } return $response; } }
The text was updated successfully, but these errors were encountered:
Thanks for reporting @jianminLee. Can you make a PR for this? I think $request->is('nova-api/*/*/attach*') may work.
$request->is('nova-api/*/*/attach*')
Sorry, something went wrong.
@paras-malhotra try:
$request->is('nova-api/*/*/attach*/*')
is work.
fix:issues insenseanalytics#5. fix:permission title not translate.
88dfe07
Merge pull request #1 from jianminLee/master
33d0bde
fix issues insenseanalytics#5 and permission title not translate
No branches or pull requests
The text was updated successfully, but these errors were encountered: