rename module

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

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

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

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

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

@ -1,6 +1,6 @@
<?php <?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 <?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');
} }
/** /**

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

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

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

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

Loading…
Cancel
Save