diff --git a/Config/config.php b/Config/config.php index 554dec3..a95da35 100644 --- a/Config/config.php +++ b/Config/config.php @@ -1,5 +1,5 @@ 'LouketoAuth' + 'name' => 'HttpHeaderAuth' ]; diff --git a/Database/Seeders/LouketoAuthDatabaseSeeder.php b/Database/Seeders/HttpHeaderAuthDatabaseSeeder.php similarity index 72% rename from Database/Seeders/LouketoAuthDatabaseSeeder.php rename to Database/Seeders/HttpHeaderAuthDatabaseSeeder.php index 5f040c2..c15923e 100644 --- a/Database/Seeders/LouketoAuthDatabaseSeeder.php +++ b/Database/Seeders/HttpHeaderAuthDatabaseSeeder.php @@ -1,11 +1,11 @@ 'web', 'prefix' => \Helper::getSubdirectory(), 'namespace' => 'Modules\LouketoAuth\Http\Controllers'], function() +Route::group(['middleware' => 'web', 'prefix' => \Helper::getSubdirectory(), 'namespace' => 'Modules\HttpHeaderAuth\Http\Controllers'], function() { - Route::get('/', 'LouketoAuthController@index'); + Route::get('/', 'HttpHeaderAuthController@index'); }); diff --git a/Providers/LouketoAuthServiceProvider.php b/Providers/HttpHeaderAuthServiceProvider.php similarity index 80% rename from Providers/LouketoAuthServiceProvider.php rename to Providers/HttpHeaderAuthServiceProvider.php index 310c47f..fead51d 100644 --- a/Providers/LouketoAuthServiceProvider.php +++ b/Providers/HttpHeaderAuthServiceProvider.php @@ -1,13 +1,13 @@ publishes([ - __DIR__.'/../Config/config.php' => config_path('louketoauth.php'), + __DIR__ . '/../Config/config.php' => config_path('httpheaderauth.php'), ], 'config'); $this->mergeConfigFrom( - __DIR__.'/../Config/config.php', 'louketoauth' + __DIR__ . '/../Config/config.php', 'httpheaderauth' ); } @@ -85,17 +85,17 @@ class LouketoAuthServiceProvider extends ServiceProvider */ public function registerViews() { - $viewPath = resource_path('views/modules/louketoauth'); + $viewPath = resource_path('views/modules/httpheaderauth'); - $sourcePath = __DIR__.'/../Resources/views'; + $sourcePath = __DIR__ . '/../Resources/views'; $this->publishes([ $sourcePath => $viewPath - ],'views'); + ], 'views'); $this->loadViewsFrom(array_merge(array_map(function ($path) { - return $path . '/modules/louketoauth'; - }, \Config::get('view.paths')), [$sourcePath]), 'louketoauth'); + return $path . '/modules/httpheaderauth'; + }, \Config::get('view.paths')), [$sourcePath]), 'httpheaderauth'); } /** @@ -105,7 +105,7 @@ class LouketoAuthServiceProvider extends ServiceProvider */ public function registerTranslations() { - $this->loadJsonTranslationsFrom(__DIR__ .'/../Resources/lang'); + $this->loadJsonTranslationsFrom(__DIR__ . '/../Resources/lang'); } /** @@ -114,7 +114,7 @@ class LouketoAuthServiceProvider extends ServiceProvider */ public function registerFactories() { - if (! app()->environment('production')) { + if (!app()->environment('production')) { app(Factory::class)->load(__DIR__ . '/../Database/factories'); } } diff --git a/Resources/views/index.blade.php b/Resources/views/index.blade.php index 91af549..bbccf60 100644 --- a/Resources/views/index.blade.php +++ b/Resources/views/index.blade.php @@ -1,9 +1,9 @@ -@extends('louketoauth::layouts.master') +@extends('httpheaderauth::layouts.master') @section('content')
- This view is loaded from module: {!! config('louketoauth.name') !!} + This view is loaded from module: {!! config('httpheaderauth.name') !!}
@stop diff --git a/Resources/views/layouts/master.blade.php b/Resources/views/layouts/master.blade.php index b30b444..e059117 100644 --- a/Resources/views/layouts/master.blade.php +++ b/Resources/views/layouts/master.blade.php @@ -4,7 +4,7 @@ -