remove unused function

This commit is contained in:
daeng.deni@dharma.or.id 2023-05-20 21:08:17 +07:00
parent 26e32d4d54
commit a90f775f2a
12 changed files with 47 additions and 73 deletions

View File

@ -23,6 +23,7 @@
"nwidart/laravel-modules": "^10.0", "nwidart/laravel-modules": "^10.0",
"putrakuningan/cetaklabel-module": "dev-master", "putrakuningan/cetaklabel-module": "dev-master",
"putrakuningan/logs-module": "^1.0", "putrakuningan/logs-module": "^1.0",
"putrakuningan/usermanager-module": "dev-master",
"spatie/laravel-activitylog": "^4.7", "spatie/laravel-activitylog": "^4.7",
"spatie/laravel-permission": "^5.10", "spatie/laravel-permission": "^5.10",
"wildside/userstamps": "^2.3", "wildside/userstamps": "^2.3",
@ -92,12 +93,12 @@
{ {
"name": "putrakuningan/cetaklabel-module", "name": "putrakuningan/cetaklabel-module",
"type": "vcs", "type": "vcs",
"url": "https://git.putrakuningan.com/putrakuningan/CetakLabel" "url": "https://git.putrakuningan.com/putrakuningan/Cetaklabel"
}, },
{ {
"name": "putrakuningan/usermanager-module", "name": "putrakuningan/usermanager-module",
"type": "vcs", "type": "vcs",
"url": "https://git.putrakuningan.com/putrakuningan/UserManager" "url": "https://git.putrakuningan.com/putrakuningan/Usermanager"
} }
] ]
} }

37
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "3331fe53e7be9dc11ac871275b11223c", "content-hash": "a6fddd68e867d09af781a2e63070d709",
"packages": [ "packages": [
{ {
"name": "anlutro/l4-settings", "name": "anlutro/l4-settings",
@ -4031,7 +4031,7 @@
"version": "dev-master", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.putrakuningan.com/putrakuningan/CetakLabel", "url": "https://git.putrakuningan.com/putrakuningan/Cetaklabel",
"reference": "5db56258b31950f162a4ab1b5769932e3d258818" "reference": "5db56258b31950f162a4ab1b5769932e3d258818"
}, },
"default-branch": true, "default-branch": true,
@ -4044,7 +4044,7 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Modules\\CetakLabel\\": "" "Modules\\Cetaklabel\\": ""
} }
}, },
"authors": [ "authors": [
@ -4072,7 +4072,7 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Modules\\CetakLabel\\": "" "Modules\\Cetaklabel\\": ""
} }
}, },
"authors": [ "authors": [
@ -4083,6 +4083,35 @@
], ],
"time": "2023-05-15T17:16:12+00:00" "time": "2023-05-15T17:16:12+00:00"
}, },
{
"name": "putrakuningan/usermanager-module",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://git.putrakuningan.com/putrakuningan/Usermanager",
"reference": "55ba120a1dba6a05844aae9b0eceda61b8f53db3"
},
"default-branch": true,
"type": "laravel-module",
"extra": {
"laravel": {
"providers": [],
"aliases": []
}
},
"autoload": {
"psr-4": {
"Modules\\Usermanager\\": ""
}
},
"authors": [
{
"name": "Daeng Deni Mardaeni",
"email": "ddeni05@gmail.com"
}
],
"time": "2023-05-16T09:57:59+00:00"
},
{ {
"name": "ralouphie/getallheaders", "name": "ralouphie/getallheaders",
"version": "3.0.3", "version": "3.0.3",

View File

@ -62,7 +62,7 @@ return [
'providers' => [ 'providers' => [
'users' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => \Modules\UserManager\Entities\User::class, 'model' => \Modules\Usermanager\Entities\User::class,
], ],
// 'users' => [ // 'users' => [

View File

@ -1,40 +0,0 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\Modules\UserManager\Entities\User>
*/
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
];
}
/**
* Indicate that the model's email address should be unverified.
*
* @return static
*/
public function unverified()
{
return $this->state(fn (array $attributes) => [
'email_verified_at' => null,
]);
}
}

View File

@ -4,7 +4,7 @@
// use Illuminate\Database\Console\Seeds\WithoutModelEvents; // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Modules\UserManager\Database\Seeders\UsersSeeder; use Modules\Usermanager\Database\Seeders\UsersSeeder;
class DatabaseSeeder extends Seeder class DatabaseSeeder extends Seeder
{ {

View File

@ -1,5 +1,5 @@
{ {
"CetakLabel": true, "Cetaklabel": true,
"Logs": true, "Logs": true,
"UserManager": true "Usermanager": true
} }

View File

@ -1,10 +1,5 @@
<?php <?php
use App\Http\Controllers\DirectoratController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Modules\UserManager\Http\Controllers\Auth\AuthApiController as AuthApiControllerAlias;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| API Routes | API Routes
@ -15,14 +10,3 @@
| is assigned the "api" middleware group. Enjoy building your API! | is assigned the "api" middleware group. Enjoy building your API!
| |
*/ */
Route::post('register', [AuthApiControllerAlias::class, 'register']);
Route::post('login', [AuthApiControllerAlias::class, 'login']);
Route::get('test-sama', function(){
return 'api';
});
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});

View File

@ -11,9 +11,9 @@
use App\Http\Controllers\SubJobController; use App\Http\Controllers\SubJobController;
use App\Http\Controllers\SubSubJobController; use App\Http\Controllers\SubSubJobController;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use Modules\UserManager\Http\Controllers\Users\PermissionsController; use Modules\Usermanager\Http\Controllers\Users\PermissionsController;
use Modules\UserManager\Http\Controllers\Users\RolesController; use Modules\Usermanager\Http\Controllers\Users\RolesController;
use Modules\UserManager\Http\Controllers\Users\UsersController; use Modules\Usermanager\Http\Controllers\Users\UsersController;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@ namespace Tests\Feature\Auth;
use App\Providers\RouteServiceProvider; use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\RefreshDatabase;
use Modules\UserManager\Entities\User; use Modules\Usermanager\Entities\User;
use Tests\TestCase; use Tests\TestCase;
class AuthenticationTest extends TestCase class AuthenticationTest extends TestCase

View File

@ -7,7 +7,7 @@ use Illuminate\Auth\Events\Verified;
use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\URL;
use Modules\UserManager\Entities\User; use Modules\Usermanager\Entities\User;
use Tests\TestCase; use Tests\TestCase;
class EmailVerificationTest extends TestCase class EmailVerificationTest extends TestCase

View File

@ -3,7 +3,7 @@
namespace Tests\Feature\Auth; namespace Tests\Feature\Auth;
use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\RefreshDatabase;
use Modules\UserManager\Entities\User; use Modules\Usermanager\Entities\User;
use Tests\TestCase; use Tests\TestCase;
class PasswordConfirmationTest extends TestCase class PasswordConfirmationTest extends TestCase

View File

@ -5,7 +5,7 @@ namespace Tests\Feature\Auth;
use Illuminate\Auth\Notifications\ResetPassword; use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Modules\UserManager\Entities\User; use Modules\Usermanager\Entities\User;
use Tests\TestCase; use Tests\TestCase;
class PasswordResetTest extends TestCase class PasswordResetTest extends TestCase