Wed Oct 16
can method is on the user as authorization always attaches to the current logged in userThe following specifies checking the sendReceipt() method in the OrderPolicy
(new Actions\SendReceipt)->canSee(function ($request) {
return $request->user()->can('sendReceipt', \App\Models\Order::class);
})->canRun(function ($request, $order) {
return $request->user()->can('sendReceipt', \App\Models\Order::class);
}),