NeedMeetupMiddleware added

This commit is contained in:
Benjamin Takats
2023-01-17 18:59:10 +01:00
parent 3a32d1ebe5
commit 8e0d23a296
26 changed files with 524 additions and 36 deletions

View File

@@ -37,6 +37,10 @@ class Meetup extends Resource
public static function afterCreate(NovaRequest $request, Model $model)
{
auth()
->user()
->meetups()
->attach($model);
\App\Models\User::find(1)
->notify(new ModelCreatedNotification($model, str($request->getRequestUri())
->after('/nova-api/')