diff --git a/Authentication.php b/Authentication.php deleted file mode 100644 index 0a636fe..0000000 --- a/Authentication.php +++ /dev/null @@ -1,24 +0,0 @@ -input('gql_session') === 'SUPER_SECRET_TOKEN') { - return 'false'; - } else { - return 'true'; - } - - return $next($request); - } -} diff --git a/Plugin.php b/Plugin.php index 745582c..fd9459c 100644 --- a/Plugin.php +++ b/Plugin.php @@ -5,6 +5,7 @@ use System\Classes\PluginBase; use App; use Config; use Illuminate\Database\DatabaseManager; +use Illuminate\Support\Facades\Broadcast; use Illuminate\Foundation\AliasLoader; use GermanAirlinesVa\Graphql\Classes\GraphqlServiceProvider; use Nuwave\Lighthouse\Subscriptions\SubscriptionServiceProvider; @@ -43,7 +44,7 @@ class Plugin extends PluginBase $this->app->singleton(DatabaseManager::class, function ($app) { return $app->make('db'); }); - \Illuminate\Support\Facades\Broadcast::routes([ + Broadcast::routes([ 'prefix' => '', 'middleware' => 'GermanAirlinesVA\\Graphql\\Classes\\Authentication', ]); diff --git a/channels/.channels.php.swp b/channels/.channels.php.swp deleted file mode 100644 index b1f0ded..0000000 Binary files a/channels/.channels.php.swp and /dev/null differ diff --git a/channels/channels.php b/channels/channels.php deleted file mode 100644 index 5abfaec..0000000 --- a/channels/channels.php +++ /dev/null @@ -1,18 +0,0 @@ -