From: Louis Jeckel Date: Mon, 7 Sep 2020 06:32:38 +0000 (+0200) Subject: open webhook X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=388beb31bce7e09fe19f31f7c84a29f687035c55;p=psq.git open webhook --- 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 :