|
|
@ -1,13 +1,13 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace Modules\LouketoAuth\Providers;
|
|
|
|
namespace Modules\HttpHeaderAuth\Providers;
|
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Password;
|
|
|
|
use Illuminate\Support\Facades\Password;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Illuminate\Database\Eloquent\Factory;
|
|
|
|
use Illuminate\Database\Eloquent\Factory;
|
|
|
|
use App\User;
|
|
|
|
use App\User;
|
|
|
|
|
|
|
|
|
|
|
|
class LouketoAuthServiceProvider extends ServiceProvider
|
|
|
|
class HttpHeaderAuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Indicates if loading of the provider is deferred.
|
|
|
|
* Indicates if loading of the provider is deferred.
|
|
|
@ -71,10 +71,10 @@ class LouketoAuthServiceProvider extends ServiceProvider
|
|
|
|
protected function registerConfig()
|
|
|
|
protected function registerConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->publishes([
|
|
|
|
$this->publishes([
|
|
|
|
__DIR__.'/../Config/config.php' => config_path('louketoauth.php'),
|
|
|
|
__DIR__ . '/../Config/config.php' => config_path('httpheaderauth.php'),
|
|
|
|
], 'config');
|
|
|
|
], 'config');
|
|
|
|
$this->mergeConfigFrom(
|
|
|
|
$this->mergeConfigFrom(
|
|
|
|
__DIR__.'/../Config/config.php', 'louketoauth'
|
|
|
|
__DIR__ . '/../Config/config.php', 'httpheaderauth'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -85,7 +85,7 @@ class LouketoAuthServiceProvider extends ServiceProvider
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function registerViews()
|
|
|
|
public function registerViews()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$viewPath = resource_path('views/modules/louketoauth');
|
|
|
|
$viewPath = resource_path('views/modules/httpheaderauth');
|
|
|
|
|
|
|
|
|
|
|
|
$sourcePath = __DIR__ . '/../Resources/views';
|
|
|
|
$sourcePath = __DIR__ . '/../Resources/views';
|
|
|
|
|
|
|
|
|
|
|
@ -94,8 +94,8 @@ class LouketoAuthServiceProvider extends ServiceProvider
|
|
|
|
], 'views');
|
|
|
|
], 'views');
|
|
|
|
|
|
|
|
|
|
|
|
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
|
|
|
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
|
|
|
return $path . '/modules/louketoauth';
|
|
|
|
return $path . '/modules/httpheaderauth';
|
|
|
|
}, \Config::get('view.paths')), [$sourcePath]), 'louketoauth');
|
|
|
|
}, \Config::get('view.paths')), [$sourcePath]), 'httpheaderauth');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|