rename module

main
n0emis 4 years ago
parent 9604e4d22a
commit 3d06a539c8
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -1,5 +1,5 @@
<?php
return [
'name' => 'LouketoAuth'
'name' => 'HttpHeaderAuth'
];

@ -1,11 +1,11 @@
<?php
namespace Modules\LouketoAuth\Database\Seeders;
namespace Modules\HttpHeaderAuth\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class LouketoAuthDatabaseSeeder extends Seeder
class HttpHeaderAuthDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.

@ -1,12 +1,12 @@
<?php
namespace Modules\LouketoAuth\Http\Controllers;
namespace Modules\HttpHeaderAuth\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
class LouketoAuthController extends Controller
class HttpHeaderAuthController extends Controller
{
/**
* Display a listing of the resource.
@ -14,7 +14,7 @@ class LouketoAuthController extends Controller
*/
public function index()
{
return view('louketoauth::index');
return view('httpheaderauth::index');
}
/**
@ -23,7 +23,7 @@ class LouketoAuthController extends Controller
*/
public function create()
{
return view('louketoauth::create');
return view('httpheaderauth::create');
}
/**
@ -41,7 +41,7 @@ class LouketoAuthController extends Controller
*/
public function show()
{
return view('louketoauth::show');
return view('httpheaderauth::show');
}
/**
@ -50,7 +50,7 @@ class LouketoAuthController extends Controller
*/
public function edit()
{
return view('louketoauth::edit');
return view('httpheaderauth::edit');
}
/**

@ -1,11 +1,11 @@
<?php
namespace Modules\LouketoAuth\Http\Middleware;
namespace Modules\HttpHeaderAuth\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class LouketoAuthMiddleware
class HttpHeaderAuthMiddleware
{
/**
* Handle an incoming request.

@ -1,6 +1,6 @@
<?php
Route::group(['middleware' => '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');
});

@ -1,13 +1,13 @@
<?php
namespace Modules\LouketoAuth\Providers;
namespace Modules\HttpHeaderAuth\Providers;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Factory;
use App\User;
class LouketoAuthServiceProvider extends ServiceProvider
class HttpHeaderAuthServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
@ -71,10 +71,10 @@ class LouketoAuthServiceProvider extends ServiceProvider
protected function registerConfig()
{
$this->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');
}
}

@ -1,9 +1,9 @@
@extends('louketoauth::layouts.master')
@extends('httpheaderauth::layouts.master')
@section('content')
<h1>Hello World</h1>
<p>
This view is loaded from module: {!! config('louketoauth.name') !!}
This view is loaded from module: {!! config('httpheaderauth.name') !!}
</p>
@stop

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Module LouketoAuth</title>
<title>Module HttpHeaderAuth</title>
</head>
<body>
@yield('content')

@ -1,5 +1,5 @@
{
"name": "freescout/louketoauth",
"name": "freescout/httpheaderauth",
"description": "",
"authors": [
{
@ -10,16 +10,16 @@
"extra": {
"laravel": {
"providers": [
"Modules\\LouketoAuth\\Providers\\LouketoAuthServiceProvider"
"Modules\\HttpHeaderAuth\\Providers\\HttpHeaderAuthServiceProvider"
],
"aliases": {
}
}
},
"autoload": {
"psr-4": {
"Modules\\LouketoAuth\\": ""
"Modules\\HttpHeaderAuth\\": ""
}
}
}

@ -1,6 +1,6 @@
{
"name": "LouketoAuth",
"alias": "louketoauth",
"name": "HttpHeaderAuth",
"alias": "httpheaderauth",
"description": "",
"version": "1.0.0",
"detailsUrl": "",
@ -12,7 +12,7 @@
"active": 0,
"order": 0,
"providers": [
"Modules\\LouketoAuth\\Providers\\LouketoAuthServiceProvider"
"Modules\\HttpHeaderAuth\\Providers\\HttpHeaderAuthServiceProvider"
],
"aliases": {},
"files": [

Loading…
Cancel
Save