From 388beb31bce7e09fe19f31f7c84a29f687035c55 Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Mon, 7 Sep 2020 08:32:38 +0200 Subject: [PATCH] open webhook --- app/Http/Controllers/Auth/NotRegisteredYet.php | 4 ++++ app/Http/Controllers/WebhookController.php | 5 +++++ app/Models/WeeklyAgenda.php | 10 ++++++++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Auth/NotRegisteredYet.php b/app/Http/Controllers/Auth/NotRegisteredYet.php index ad9deae..6f7ce9b 100644 --- a/app/Http/Controllers/Auth/NotRegisteredYet.php +++ b/app/Http/Controllers/Auth/NotRegisteredYet.php @@ -8,6 +8,10 @@ use App\Http\Controllers\Controller; class NotRegisteredYet extends Controller { + public function __construct() + { + } + public function index() { return view('not-registered.index'); diff --git a/app/Http/Controllers/WebhookController.php b/app/Http/Controllers/WebhookController.php index 5862722..13616e1 100644 --- a/app/Http/Controllers/WebhookController.php +++ b/app/Http/Controllers/WebhookController.php @@ -8,6 +8,11 @@ use Illuminate\Http\Request; class WebhookController extends Controller { + + public function __construct() + { + } + public function mailgunEvent(Request $request) { event(new DispatchMailgunEvent($request->toArray())); diff --git a/app/Models/WeeklyAgenda.php b/app/Models/WeeklyAgenda.php index 607f995..dcd1cec 100644 --- a/app/Models/WeeklyAgenda.php +++ b/app/Models/WeeklyAgenda.php @@ -65,14 +65,20 @@ class WeeklyAgenda extends Model } - public function nextWeekUrl() + /** + * @return string|null + */ + public function nextWeekUrl(): ?string { return ($a = self::find($this->id + 1)) === null ? null : $a->url; } - public function lastWeekUrl() + /** + * @return string|null + */ + public function lastWeekUrl(): ?string { return ($a = self::find($this->id - 1)) === null ? null : -- 2.39.5