src/Resources/Post.php
/**
     * Get the actions available for the resource.
     */
Get the actions available for the resource.
Get the actions available for the resource .
public function actions(Request $request): array
    {
        return [
            (new \Den1n\NovaBlog\Actions\Publish)->canSee(function ($request) {
                return $request->user()->can('blogUpdatePosts');
            }),
        ];
    }
public function actions ( Request $ request ) : array { return [ ( new \ Den1n \ NovaBlog \ Actions \ Publish ) -> canSee ( function ( $ request ) { return $ request -> user ( ) -> can ( 'blogUpdatePosts' ) ; } ) , ] ; }
Get the actions available for the resource.
Get the actions available for the resource .