Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Unhandled Promise Rejection: Error: Request failed with status code 500
Steps To Reproduce:
[ ] Initial Set-Up with Actionable Trait
[ ] Section for actions visible in the User-Area
[ ] Send out user invitation
[ ] Receive an Error
User-Model:
use App\App\Traits\HasUuid;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Nova\Actions\Actionable;
class User extends Authenticatable
{
use Actionable, Notifiable, SoftDeletes, HasUuid;
}
User Actions:
Run an Action:
Action:
public function handle(ActionFields $fields, Collection $models)
{
try {
foreach ($models as $model) {
$model->notify(new SendPlatformInvitationNotification($model));
}
return Action::message('It worked!');
} catch (\Exception $exception) {
// @Todo Log
return Action::danger('Something went wrong!');
}
}
Description:
Following the Nova Doc: https://nova.laravel.com/docs/1.0/actions/defining-actions.html#action-log
Steps To Reproduce:
User-Model:
User Actions:
Run an Action:
Action:
Errors: