mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
NeedMeetupMiddleware added
This commit is contained in:
@@ -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/')
|
||||
|
||||
Reference in New Issue
Block a user