...@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Model; ...@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class TabParameterInfo extends Model class TabParameterInfo extends Model
{ {
public $timestamps = false;
protected $table = 'tab_parameter_info'; protected $table = 'tab_parameter_info';
protected $fillable = [ protected $fillable = [
'infoid', 'infoid',
......
...@@ -7,6 +7,9 @@ use Illuminate\Database\Eloquent\Model; ...@@ -7,6 +7,9 @@ use Illuminate\Database\Eloquent\Model;
class TabPatchFile extends Model class TabPatchFile extends Model
{ {
protected $table = 'tab_patch_file'; protected $table = 'tab_patch_file';
protected $primaryKey = 'fid';
public $timestamps = false;
protected $fillable = [ protected $fillable = [
'fid', 'fid',
'ptid', 'ptid',
......
...@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model; ...@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class TabRole extends Model class TabRole extends Model
{ {
protected $table = 'tab_role'; protected $table = 'tab_role';
protected $fillable = [ protected $fillable = [
'ROLEID', 'ROLEID',
'ROLENAME', 'ROLENAME',
...@@ -18,4 +19,103 @@ class TabRole extends Model ...@@ -18,4 +19,103 @@ class TabRole extends Model
'OnAssign', 'OnAssign',
'OnDeassign', 'OnDeassign',
]; ];
// Accessors and Mutators for ROLEID
// public function getRoleIdAttribute()
// {
// return $this->attributes['ROLEID'];
// }
// public function setRoleIdAttribute($value)
// {
// $this->attributes['ROLEID'] = $value;
// }
// // Accessors and Mutators for ROLENAME
// public function getRoleNameAttribute()
// {
// return $this->attributes['ROLENAME'];
// }
// public function setRoleNameAttribute($value)
// {
// $this->attributes['ROLENAME'] = $value;
// }
// // Accessors and Mutators for DEPEND_ON_ROLE
// public function getDependOnRoleAttribute()
// {
// return $this->attributes['DEPEND_ON_ROLE'];
// }
// public function setDependOnRoleAttribute($value)
// {
// $this->attributes['DEPEND_ON_ROLE'] = $value;
// }
// // Accessors and Mutators for ROLE_DESCRIPTION
// public function getRoleDescriptionAttribute()
// {
// return $this->attributes['ROLE_DESCRIPTION'];
// }
// public function setRoleDescriptionAttribute($value)
// {
// $this->attributes['ROLE_DESCRIPTION'] = $value;
// }
// // Accessors and Mutators for REQUIRED_SERVICE
// public function getRequiredServiceAttribute()
// {
// return $this->attributes['REQUIRED_SERVICE'];
// }
// public function setRequiredServiceAttribute($value)
// {
// $this->attributes['REQUIRED_SERVICE'] = $value;
// }
// // Accessors and Mutators for OnConfigure
// public function getOnConfigureAttribute()
// {
// return $this->attributes['OnConfigure'];
// }
// public function setOnConfigureAttribute($value)
// {
// $this->attributes['OnConfigure'] = $value;
// }
// // Accessors and Mutators for OnSaveConfig
// public function getOnSaveConfigAttribute()
// {
// return $this->attributes['OnSaveConfig'];
// }
// public function setOnSaveConfigAttribute($value)
// {
// $this->attributes['OnSaveConfig'] = $value;
// }
// // Accessors and Mutators for OnAssign
// public function getOnAssignAttribute()
// {
// return $this->attributes['OnAssign'];
// }
// public function setOnAssignAttribute($value)
// {
// $this->attributes['OnAssign'] = $value;
// }
// // Accessors and Mutators for OnDeassign
// public function getOnDeassignAttribute()
// {
// return $this->attributes['OnDeassign'];
// }
// public function setOnDeassignAttribute($value)
// {
// $this->attributes['OnDeassign'] = $value;
// }
} }
...@@ -3,18 +3,16 @@ ...@@ -3,18 +3,16 @@
namespace App\Models; namespace App\Models;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
class TabUser extends Authenticatable class TabUser extends Model
{ {
protected $table = 'tab_user'; protected $table = 'tab_user';
protected $primaryKey = 'UID'; protected $primaryKey = 'UID';
protected $hidden = [ protected $hidden = [
'PASSWORD', 'PASSWORD',
]; ];
protected $fillable = [ protected $fillable = [
'UID', 'UID',
'UCODE', 'UCODE',
...@@ -38,4 +36,230 @@ class TabUser extends Authenticatable ...@@ -38,4 +36,230 @@ class TabUser extends Authenticatable
'PAYMENT_ORG', 'PAYMENT_ORG',
'BUCODE', 'BUCODE',
]; ];
// Accessors and Mutators for UID
// public function getUidAttribute()
// {
// return $this->attributes['UID'];
// }
// public function setUidAttribute($value)
// {
// $this->attributes['UID'] = $value;
// }
// // Accessors and Mutators for UCODE
// public function getUcodeAttribute()
// {
// return $this->attributes['UCODE'];
// }
// public function setUcodeAttribute($value)
// {
// $this->attributes['UCODE'] = $value;
// }
// // Accessors and Mutators for USERNAME
// public function getUsernameAttribute()
// {
// return $this->attributes['USERNAME'];
// }
// public function setUsernameAttribute($value)
// {
// $this->attributes['USERNAME'] = $value;
// }
// // Accessors and Mutators for PASSWORD
// public function setPasswordAttribute($value)
// {
// $this->attributes['PASSWORD'] = bcrypt($value);
// }
// // Accessors and Mutators for CPID
// public function getCpidAttribute()
// {
// return $this->attributes['CPID'];
// }
// public function setCpidAttribute($value)
// {
// $this->attributes['CPID'] = $value;
// }
// // Accessors and Mutators for GID
// public function getGidAttribute()
// {
// return $this->attributes['GID'];
// }
// public function setGidAttribute($value)
// {
// $this->attributes['GID'] = $value;
// }
// // Accessors and Mutators for FIRSTNAME
// public function getFirstNameAttribute()
// {
// return $this->attributes['FIRSTNAME'];
// }
// public function setFirstNameAttribute($value)
// {
// $this->attributes['FIRSTNAME'] = ucfirst(strtolower($value));
// }
// // Accessors and Mutators for LASTNAME
// public function getLastNameAttribute()
// {
// return $this->attributes['LASTNAME'];
// }
// public function setLastNameAttribute($value)
// {
// $this->attributes['LASTNAME'] = ucfirst(strtolower($value));
// }
// // Accessors and Mutators for EMAIL
// public function getEmailAttribute()
// {
// return $this->attributes['EMAIL'];
// }
// public function setEmailAttribute($value)
// {
// $this->attributes['EMAIL'] = strtolower($value);
// }
// // Accessors and Mutators for PHONE
// public function getPhoneAttribute()
// {
// return $this->attributes['PHONE'];
// }
// public function setPhoneAttribute($value)
// {
// $this->attributes['PHONE'] = $value;
// }
// // Accessors and Mutators for APPROVED
// public function getApprovedAttribute()
// {
// return $this->attributes['APPROVED'];
// }
// public function setApprovedAttribute($value)
// {
// $this->attributes['APPROVED'] = $value;
// }
// // Accessors and Mutators for APPROVEDATE
// public function getApproveDateAttribute()
// {
// return $this->attributes['APPROVEDATE'];
// }
// public function setApproveDateAttribute($value)
// {
// $this->attributes['APPROVEDATE'] = $value;
// }
// // Accessors and Mutators for STATUSLOGIN
// public function getStatusLoginAttribute()
// {
// return $this->attributes['STATUSLOGIN'];
// }
// public function setStatusLoginAttribute($value)
// {
// $this->attributes['STATUSLOGIN'] = $value;
// }
// // Accessors and Mutators for LASTLOGIN
// public function getLastLoginAttribute()
// {
// return $this->attributes['LASTLOGIN'];
// }
// public function setLastLoginAttribute($value)
// {
// $this->attributes['LASTLOGIN'] = $value;
// }
// // Accessors and Mutators for ACTIVITY
// public function getActivityAttribute()
// {
// return $this->attributes['ACTIVITY'];
// }
// public function setActivityAttribute($value)
// {
// $this->attributes['ACTIVITY'] = $value;
// }
// // Accessors and Mutators for ACTIVITY_TIME
// public function getActivityTimeAttribute()
// {
// return $this->attributes['ACTIVITY_TIME'];
// }
// public function setActivityTimeAttribute($value)
// {
// $this->attributes['ACTIVITY_TIME'] = $value;
// }
// // Accessors and Mutators for UCID
// public function getUcidAttribute()
// {
// return $this->attributes['UCID'];
// }
// public function setUcidAttribute($value)
// {
// $this->attributes['UCID'] = $value;
// }
// // Accessors and Mutators for PAYMENT_USER
// public function getPaymentUserAttribute()
// {
// return $this->attributes['PAYMENT_USER'];
// }
// public function setPaymentUserAttribute($value)
// {
// $this->attributes['PAYMENT_USER'] = $value;
// }
// // Accessors and Mutators for PAYMENT_PASS
// public function getPaymentPassAttribute()
// {
// return $this->attributes['PAYMENT_PASS'];
// }
// public function setPaymentPassAttribute($value)
// {
// $this->attributes['PAYMENT_PASS'] = $value;
// }
// // Accessors and Mutators for PAYMENT_ORG
// public function getPaymentOrgAttribute()
// {
// return $this->attributes['PAYMENT_ORG'];
// }
// public function setPaymentOrgAttribute($value)
// {
// $this->attributes['PAYMENT_ORG'] = $value;
// }
// // Accessors and Mutators for BUCODE
// public function getBuCodeAttribute()
// {
// return $this->attributes['BUCODE'];
// }
// public function setBuCodeAttribute($value)
// {
// $this->attributes['BUCODE'] = $value;
// }
} }
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Collection;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable ;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'uid',
'username',
'first_name',
'last_name',
'phone',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
public function groups()
{
return $this->belongsToMany(Group::class);
}
public function patches()
{
return $this->hasMany(ConfSmartupdate::class , 'uid', 'POWNER');
}
public function permissions()
{
// Get the permission IDs through the user's groups and roles
$groupIds = $this->groups()->pluck('groups.id');
$roleIds = GroupRole::whereIn('group_id', $groupIds)->pluck('role_id');
$permissionIds = PermissionRole::whereIn('role_id', $roleIds)->pluck('permission_id');
return Permission::whereIn('id', $permissionIds);
}
public function hasPermissions($permissionName)
{
return $this->permissions()->where('name', $permissionName)->exists();
}
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class UserGroup extends Model
{
protected $table = 'user_group';
protected $fillable = [
'id',
'group_id',
'user_id',
'created_at',
'updated_at',
];
}
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Barryvdh\Debugbar\Facades\Debugbar;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator; use Illuminate\Pagination\Paginator;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
...@@ -23,6 +24,10 @@ class AppServiceProvider extends ServiceProvider ...@@ -23,6 +24,10 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
// if (request()->isJson() || request()->ajax()) {
if (app()->bound('debugbar')) {
Debugbar::disable();
}
}
} }
} }
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Laravel\Telescope\IncomingEntry;
use Laravel\Telescope\Telescope;
use Laravel\Telescope\TelescopeApplicationServiceProvider;
class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
// Telescope::night();
$this->hideSensitiveRequestDetails();
$isLocal = $this->app->environment('local');
Telescope::filter(function (IncomingEntry $entry) use ($isLocal) {
return $isLocal ||
$entry->isReportableException() ||
$entry->isFailedRequest() ||
$entry->isFailedJob() ||
$entry->isScheduledTask() ||
$entry->hasMonitoredTag();
});
}
/**
* Prevent sensitive request details from being logged by Telescope.
*/
protected function hideSensitiveRequestDetails(): void
{
if ($this->app->environment('local')) {
return;
}
Telescope::hideRequestParameters(['_token']);
Telescope::hideRequestHeaders([
'cookie',
'x-csrf-token',
'x-xsrf-token',
]);
}
/**
* Register the Telescope gate.
*
* This gate determines who can access Telescope in non-local environments.
*/
protected function gate(): void
{
Gate::define('viewTelescope', function ($user) {
return in_array($user->email, [
//
]);
});
}
}
<?php return array (
'code-comparer' => 'App\\Http\\Livewire\\CodeComparer',
'delete-item-modal' => 'App\\Http\\Livewire\\DeleteItemModal',
'delete-modal' => 'App\\Http\\Livewire\\DeleteModal',
'main-container' => 'App\\Http\\Livewire\\MainContainer',
'navbar' => 'App\\Http\\Livewire\\Navbar',
'pages.company.company-create' => 'App\\Http\\Livewire\\Pages\\Company\\CompanyCreate',
'pages.company.company-edit' => 'App\\Http\\Livewire\\Pages\\Company\\CompanyEdit',
'pages.company.company-index' => 'App\\Http\\Livewire\\Pages\\Company\\CompanyIndex',
'pages.dischargeport.dischargeport-index' => 'App\\Http\\Livewire\\Pages\\Dischargeport\\DischargeportIndex',
'pages.dischargeport.dischargeport-upload' => 'App\\Http\\Livewire\\Pages\\Dischargeport\\DischargeportUpload',
'pages.exchangerate.exchangerate-create' => 'App\\Http\\Livewire\\Pages\\Exchangerate\\ExchangerateCreate',
'pages.exchangerate.exchangerate-edit' => 'App\\Http\\Livewire\\Pages\\Exchangerate\\ExchangerateEdit',
'pages.exchangerate.exchangerate-index' => 'App\\Http\\Livewire\\Pages\\Exchangerate\\ExchangerateIndex',
'pages.exchangerate.exchangerate-upload' => 'App\\Http\\Livewire\\Pages\\Exchangerate\\ExchangerateUpload',
'pages.format-file-master.file-create' => 'App\\Http\\Livewire\\Pages\\FormatFileMaster\\FileCreate',
'pages.format-file-master.file-edit' => 'App\\Http\\Livewire\\Pages\\FormatFileMaster\\FileEdit',
'pages.format-file-master.file-index' => 'App\\Http\\Livewire\\Pages\\FormatFileMaster\\FileIndex',
'pages.group.group-create' => 'App\\Http\\Livewire\\Pages\\Group\\GroupCreate',
'pages.group.group-edit' => 'App\\Http\\Livewire\\Pages\\Group\\GroupEdit',
'pages.group.group-index' => 'App\\Http\\Livewire\\Pages\\Group\\GroupIndex',
'pages.manual-response.manual-response' => 'App\\Http\\Livewire\\Pages\\ManualResponse\\ManualResponse',
'pages.news.news-create' => 'App\\Http\\Livewire\\Pages\\News\\NewsCreate',
'pages.news.news-edit' => 'App\\Http\\Livewire\\Pages\\News\\NewsEdit',
'pages.news.news-index' => 'App\\Http\\Livewire\\Pages\\News\\NewsIndex',
'pages.parameter.parameter-create' => 'App\\Http\\Livewire\\Pages\\Parameter\\ParameterCreate',
'pages.parameter.parameter-edit' => 'App\\Http\\Livewire\\Pages\\Parameter\\ParameterEdit',
'pages.parameter.parameter-index' => 'App\\Http\\Livewire\\Pages\\Parameter\\ParameterIndex',
'pages.patch.modal-edit-code' => 'App\\Http\\Livewire\\Pages\\Patch\\ModalEditCode',
'pages.patch.modal-form-patch-file' => 'App\\Http\\Livewire\\Pages\\Patch\\ModalFormPatchFile',
'pages.patch.patch-create' => 'App\\Http\\Livewire\\Pages\\Patch\\PatchCreate',
'pages.patch.patch-edit' => 'App\\Http\\Livewire\\Pages\\Patch\\PatchEdit',
'pages.patch.patch-index' => 'App\\Http\\Livewire\\Pages\\Patch\\PatchIndex',
'pages.patch.patch-master-file' => 'App\\Http\\Livewire\\Pages\\Patch\\PatchMasterFile',
'pages.report.report-index' => 'App\\Http\\Livewire\\Pages\\Report\\ReportIndex',
'pages.role.role-create' => 'App\\Http\\Livewire\\Pages\\Role\\RoleCreate',
'pages.role.role-edit' => 'App\\Http\\Livewire\\Pages\\Role\\RoleEdit',
'pages.role.role-index' => 'App\\Http\\Livewire\\Pages\\Role\\RoleIndex',
'pages.send-patch.delete-multi-patch' => 'App\\Http\\Livewire\\Pages\\SendPatch\\DeleteMultiPatch',
'pages.send-patch.delete-multi-patch-box' => 'App\\Http\\Livewire\\Pages\\SendPatch\\DeleteMultiPatchBox',
'pages.send-patch.delete-multi-patch-list' => 'App\\Http\\Livewire\\Pages\\SendPatch\\DeleteMultiPatchList',
'pages.send-patch.send-multi-patch-box' => 'App\\Http\\Livewire\\Pages\\SendPatch\\SendMultiPatchBox',
'pages.send-patch.send-multi-patch-list' => 'App\\Http\\Livewire\\Pages\\SendPatch\\SendMultiPatchList',
'pages.send-patch.send-patch-edit' => 'App\\Http\\Livewire\\Pages\\SendPatch\\SendPatchEdit',
'pages.send-patch.send-patch-index' => 'App\\Http\\Livewire\\Pages\\SendPatch\\SendPatchIndex',
'pages.server-license.server-license-create' => 'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseCreate',
'pages.server-license.server-license-edit' => 'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseEdit',
'pages.server-license.server-license-index' => 'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseIndex',
'pages.user.config-manual-response' => 'App\\Http\\Livewire\\Pages\\User\\ConfigManualResponse',
'pages.user.user-create' => 'App\\Http\\Livewire\\Pages\\User\\UserCreate',
'pages.user.user-edit' => 'App\\Http\\Livewire\\Pages\\User\\UserEdit',
'pages.user.user-index' => 'App\\Http\\Livewire\\Pages\\User\\UserIndex',
);
\ No newline at end of file
...@@ -13,6 +13,24 @@ ...@@ -13,6 +13,24 @@
0 => 'Laravel\\Sanctum\\SanctumServiceProvider', 0 => 'Laravel\\Sanctum\\SanctumServiceProvider',
), ),
), ),
'laravel/socialite' =>
array (
'providers' =>
array (
0 => 'Laravel\\Socialite\\SocialiteServiceProvider',
),
'aliases' =>
array (
'Socialite' => 'Laravel\\Socialite\\Facades\\Socialite',
),
),
'laravel/telescope' =>
array (
'providers' =>
array (
0 => 'Laravel\\Telescope\\TelescopeServiceProvider',
),
),
'laravel/tinker' => 'laravel/tinker' =>
array ( array (
'providers' => 'providers' =>
...@@ -31,6 +49,17 @@ ...@@ -31,6 +49,17 @@
'Livewire' => 'Livewire\\Livewire', 'Livewire' => 'Livewire\\Livewire',
), ),
), ),
'maatwebsite/excel' =>
array (
'providers' =>
array (
0 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
),
'aliases' =>
array (
'Excel' => 'Maatwebsite\\Excel\\Facades\\Excel',
),
),
'nesbot/carbon' => 'nesbot/carbon' =>
array ( array (
'providers' => 'providers' =>
......
...@@ -25,17 +25,21 @@ ...@@ -25,17 +25,21 @@
21 => 'Illuminate\\View\\ViewServiceProvider', 21 => 'Illuminate\\View\\ViewServiceProvider',
22 => 'Laravel\\Sail\\SailServiceProvider', 22 => 'Laravel\\Sail\\SailServiceProvider',
23 => 'Laravel\\Sanctum\\SanctumServiceProvider', 23 => 'Laravel\\Sanctum\\SanctumServiceProvider',
24 => 'Laravel\\Tinker\\TinkerServiceProvider', 24 => 'Laravel\\Socialite\\SocialiteServiceProvider',
25 => 'Livewire\\LivewireServiceProvider', 25 => 'Laravel\\Telescope\\TelescopeServiceProvider',
26 => 'Carbon\\Laravel\\ServiceProvider', 26 => 'Laravel\\Tinker\\TinkerServiceProvider',
27 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider', 27 => 'Livewire\\LivewireServiceProvider',
28 => 'Termwind\\Laravel\\TermwindServiceProvider', 28 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
29 => 'Spatie\\LaravelIgnition\\IgnitionServiceProvider', 29 => 'Carbon\\Laravel\\ServiceProvider',
30 => 'App\\Providers\\AppServiceProvider', 30 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
31 => 'App\\Providers\\AuthServiceProvider', 31 => 'Termwind\\Laravel\\TermwindServiceProvider',
32 => 'App\\Providers\\EventServiceProvider', 32 => 'Spatie\\LaravelIgnition\\IgnitionServiceProvider',
33 => 'App\\Providers\\RouteServiceProvider', 33 => 'App\\Providers\\AppServiceProvider',
34 => 'App\\Providers\\ViewServiceProvider', 34 => 'App\\Providers\\AuthServiceProvider',
35 => 'App\\Providers\\EventServiceProvider',
36 => 'App\\Providers\\RouteServiceProvider',
37 => 'App\\Providers\\TelescopeServiceProvider',
38 => 'App\\Providers\\ViewServiceProvider',
), ),
'eager' => 'eager' =>
array ( array (
...@@ -50,16 +54,19 @@ ...@@ -50,16 +54,19 @@
8 => 'Illuminate\\Session\\SessionServiceProvider', 8 => 'Illuminate\\Session\\SessionServiceProvider',
9 => 'Illuminate\\View\\ViewServiceProvider', 9 => 'Illuminate\\View\\ViewServiceProvider',
10 => 'Laravel\\Sanctum\\SanctumServiceProvider', 10 => 'Laravel\\Sanctum\\SanctumServiceProvider',
11 => 'Livewire\\LivewireServiceProvider', 11 => 'Laravel\\Telescope\\TelescopeServiceProvider',
12 => 'Carbon\\Laravel\\ServiceProvider', 12 => 'Livewire\\LivewireServiceProvider',
13 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider', 13 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
14 => 'Termwind\\Laravel\\TermwindServiceProvider', 14 => 'Carbon\\Laravel\\ServiceProvider',
15 => 'Spatie\\LaravelIgnition\\IgnitionServiceProvider', 15 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
16 => 'App\\Providers\\AppServiceProvider', 16 => 'Termwind\\Laravel\\TermwindServiceProvider',
17 => 'App\\Providers\\AuthServiceProvider', 17 => 'Spatie\\LaravelIgnition\\IgnitionServiceProvider',
18 => 'App\\Providers\\EventServiceProvider', 18 => 'App\\Providers\\AppServiceProvider',
19 => 'App\\Providers\\RouteServiceProvider', 19 => 'App\\Providers\\AuthServiceProvider',
20 => 'App\\Providers\\ViewServiceProvider', 20 => 'App\\Providers\\EventServiceProvider',
21 => 'App\\Providers\\RouteServiceProvider',
22 => 'App\\Providers\\TelescopeServiceProvider',
23 => 'App\\Providers\\ViewServiceProvider',
), ),
'deferred' => 'deferred' =>
array ( array (
...@@ -195,6 +202,7 @@ ...@@ -195,6 +202,7 @@
'validation.presence' => 'Illuminate\\Validation\\ValidationServiceProvider', 'validation.presence' => 'Illuminate\\Validation\\ValidationServiceProvider',
'Laravel\\Sail\\Console\\InstallCommand' => 'Laravel\\Sail\\SailServiceProvider', 'Laravel\\Sail\\Console\\InstallCommand' => 'Laravel\\Sail\\SailServiceProvider',
'Laravel\\Sail\\Console\\PublishCommand' => 'Laravel\\Sail\\SailServiceProvider', 'Laravel\\Sail\\Console\\PublishCommand' => 'Laravel\\Sail\\SailServiceProvider',
'Laravel\\Socialite\\Contracts\\Factory' => 'Laravel\\Socialite\\SocialiteServiceProvider',
'command.tinker' => 'Laravel\\Tinker\\TinkerServiceProvider', 'command.tinker' => 'Laravel\\Tinker\\TinkerServiceProvider',
), ),
'when' => 'when' =>
...@@ -238,6 +246,9 @@ ...@@ -238,6 +246,9 @@
'Laravel\\Sail\\SailServiceProvider' => 'Laravel\\Sail\\SailServiceProvider' =>
array ( array (
), ),
'Laravel\\Socialite\\SocialiteServiceProvider' =>
array (
),
'Laravel\\Tinker\\TinkerServiceProvider' => 'Laravel\\Tinker\\TinkerServiceProvider' =>
array ( array (
), ),
......
...@@ -5,17 +5,22 @@ ...@@ -5,17 +5,22 @@
"keywords": ["framework", "laravel"], "keywords": ["framework", "laravel"],
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "^8.0.2", "php": "^8.2",
"doctrine/dbal": "^4.0", "czproject/git-php": "^4.2",
"guzzlehttp/guzzle": "^7.2", "guzzlehttp/guzzle": "^7.8",
"laravel/framework": "^9.19", "jfcherng/php-diff": "^6.16",
"laravel/sanctum": "^2.14.1", "laravel/framework": "^9.5",
"laravel/sanctum": "^3.0",
"laravel/socialite": "^5.16",
"laravel/telescope": "^5.2",
"laravel/tinker": "^2.7", "laravel/tinker": "^2.7",
"livewire/livewire": "^2.12" "livewire/livewire": "^2.12",
"maatwebsite/excel": "^3.1",
"phpoffice/phpspreadsheet": "^1.29"
}, },
"require-dev": { "require-dev": {
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1", "laravel/sail": "^1.21",
"mockery/mockery": "^1.4.4", "mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1", "nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10", "phpunit/phpunit": "^9.5.10",
...@@ -36,7 +41,8 @@ ...@@ -36,7 +41,8 @@
"scripts": { "scripts": {
"post-autoload-dump": [ "post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi" "@php artisan package:discover --ansi",
"@php artisan vendor:publish --force --tag=livewire:assets --ansi"
], ],
"post-update-cmd": [ "post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force" "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
......
...@@ -194,6 +194,7 @@ return [ ...@@ -194,6 +194,7 @@ return [
// App\Providers\BroadcastServiceProvider::class, // App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
App\Providers\TelescopeServiceProvider::class,
App\Providers\ViewServiceProvider::class, App\Providers\ViewServiceProvider::class,
], ],
......
...@@ -62,7 +62,7 @@ return [ ...@@ -62,7 +62,7 @@ return [
'providers' => [ 'providers' => [
'users' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => App\Models\TabUser::class, 'model' => App\Models\User::class,
], ],
// 'users' => [ // 'users' => [
......
...@@ -60,6 +60,28 @@ return [ ...@@ -60,6 +60,28 @@ return [
'engine' => null, 'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([ 'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
PDO::ATTR_PERSISTENT => true,
]) : [],
],
'localhost' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL_LOCAL'),
'host' => env('DB_HOST_LOCAL', '127.0.0.1'),
'port' => env('DB_PORT_LOCAL', '3306'),
'database' => env('DB_DATABASE_LOCAL', 'forge'),
'username' => env('DB_USERNAME_LOCAL', 'forge'),
'password' => env('DB_PASSWORD_LOCAL', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8',
'collation' => 'utf8_general_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => false,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
PDO::ATTR_PERSISTENT => true,
]) : [], ]) : [],
], ],
......
...@@ -39,7 +39,7 @@ return [ ...@@ -39,7 +39,7 @@ return [
| |
*/ */
'layout' => 'layouts.app', 'layout' => 'components.app-layout',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -82,7 +82,6 @@ return [ ...@@ -82,7 +82,6 @@ return [
*/ */
'middleware_group' => 'web', 'middleware_group' => 'web',
'inject_assets' => false,
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Livewire Temporary File Uploads Endpoint Configuration | Livewire Temporary File Uploads Endpoint Configuration
...@@ -96,14 +95,15 @@ return [ ...@@ -96,14 +95,15 @@ return [
*/ */
'temporary_file_upload' => [ 'temporary_file_upload' => [
'disk' => null, // Example: 'local', 's3' Default: 'default' 'enabled' => true,
'rules' => null, // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB) 'disk' =>'public', // Example: 'local', 's3' Default: 'default'
'rules' => ['required', 'file', 'max:100000'], // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB)
'directory' => null, // Example: 'tmp' Default 'livewire-tmp' 'directory' => null, // Example: 'tmp' Default 'livewire-tmp'
'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1' 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1'
'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs. 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs.
'png', 'gif', 'bmp', 'svg', 'wav', 'mp4', 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
'mov', 'avi', 'wmv', 'mp3', 'm4a', 'mov', 'avi', 'wmv', 'mp3', 'm4a',
'jpg', 'jpeg', 'mpga', 'webp', 'wma', 'jpg', 'jpeg', 'mpga', 'webp', 'wma', 'inc','php'
], ],
'max_upload_time' => 5, // Max duration (in minutes) before an upload gets invalidated. 'max_upload_time' => 5, // Max duration (in minutes) before an upload gets invalidated.
], ],
...@@ -137,7 +137,7 @@ return [ ...@@ -137,7 +137,7 @@ return [
| Setting it to "false" (default) will disable back button cache. | Setting it to "false" (default) will disable back button cache.
| |
*/ */
'inject_assets' => true,
'back_button_cache' => false, 'back_button_cache' => false,
/* /*
......
...@@ -31,4 +31,9 @@ return [ ...@@ -31,4 +31,9 @@ return [
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
], ],
'eec' => [
'url' => env('EEC_URL', '')
]
]; ];
...@@ -168,7 +168,7 @@ return [ ...@@ -168,7 +168,7 @@ return [
| |
*/ */
'secure' => env('SESSION_SECURE_COOKIE', true), 'secure' => env('SESSION_SECURE_COOKIE', false),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
<?php
use Laravel\Telescope\Http\Middleware\Authorize;
use Laravel\Telescope\Watchers;
return [
/*
|--------------------------------------------------------------------------
| Telescope Master Switch
|--------------------------------------------------------------------------
|
| This option may be used to disable all Telescope watchers regardless
| of their individual configuration, which simply provides a single
| and convenient way to enable or disable Telescope data storage.
|
*/
'enabled' => env('TELESCOPE_ENABLED', true),
/*
|--------------------------------------------------------------------------
| Telescope Domain
|--------------------------------------------------------------------------
|
| This is the subdomain where Telescope will be accessible from. If the
| setting is null, Telescope will reside under the same domain as the
| application. Otherwise, this value will be used as the subdomain.
|
*/
'domain' => env('TELESCOPE_DOMAIN'),
/*
|--------------------------------------------------------------------------
| Telescope Path
|--------------------------------------------------------------------------
|
| This is the URI path where Telescope will be accessible from. Feel free
| to change this path to anything you like. Note that the URI will not
| affect the paths of its internal API that aren't exposed to users.
|
*/
'path' => env('TELESCOPE_PATH', 'telescope'),
/*
|--------------------------------------------------------------------------
| Telescope Storage Driver
|--------------------------------------------------------------------------
|
| This configuration options determines the storage driver that will
| be used to store Telescope's data. In addition, you may set any
| custom options as needed by the particular driver you choose.
|
*/
'driver' => env('TELESCOPE_DRIVER', 'database'),
'storage' => [
'database' => [
'connection' => env('DB_CONNECTION', 'mysql'),
'chunk' => 1000,
],
],
/*
|--------------------------------------------------------------------------
| Telescope Queue
|--------------------------------------------------------------------------
|
| This configuration options determines the queue connection and queue
| which will be used to process ProcessPendingUpdate jobs. This can
| be changed if you would prefer to use a non-default connection.
|
*/
'queue' => [
'connection' => env('TELESCOPE_QUEUE_CONNECTION', null),
'queue' => env('TELESCOPE_QUEUE', null),
],
/*
|--------------------------------------------------------------------------
| Telescope Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every Telescope route, giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/
'middleware' => [
'web',
Authorize::class,
],
/*
|--------------------------------------------------------------------------
| Allowed / Ignored Paths & Commands
|--------------------------------------------------------------------------
|
| The following array lists the URI paths and Artisan commands that will
| not be watched by Telescope. In addition to this list, some Laravel
| commands, like migrations and queue commands, are always ignored.
|
*/
'only_paths' => [
// 'api/*'
],
'ignore_paths' => [
'livewire*',
'nova-api*',
'pulse*',
],
'ignore_commands' => [
//
],
/*
|--------------------------------------------------------------------------
| Telescope Watchers
|--------------------------------------------------------------------------
|
| The following array lists the "watchers" that will be registered with
| Telescope. The watchers gather the application's profile data when
| a request or task is executed. Feel free to customize this list.
|
*/
'watchers' => [
Watchers\BatchWatcher::class => env('TELESCOPE_BATCH_WATCHER', true),
Watchers\CacheWatcher::class => [
'enabled' => env('TELESCOPE_CACHE_WATCHER', true),
'hidden' => [],
],
Watchers\ClientRequestWatcher::class => env('TELESCOPE_CLIENT_REQUEST_WATCHER', true),
Watchers\CommandWatcher::class => [
'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
'ignore' => [],
],
Watchers\DumpWatcher::class => [
'enabled' => env('TELESCOPE_DUMP_WATCHER', true),
'always' => env('TELESCOPE_DUMP_WATCHER_ALWAYS', false),
],
Watchers\EventWatcher::class => [
'enabled' => env('TELESCOPE_EVENT_WATCHER', true),
'ignore' => [],
],
Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
Watchers\GateWatcher::class => [
'enabled' => env('TELESCOPE_GATE_WATCHER', true),
'ignore_abilities' => [],
'ignore_packages' => true,
'ignore_paths' => [],
],
Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
Watchers\LogWatcher::class => [
'enabled' => env('TELESCOPE_LOG_WATCHER', true),
'level' => 'error',
],
Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
Watchers\ModelWatcher::class => [
'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
'events' => ['eloquent.*'],
'hydrations' => true,
],
Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
Watchers\QueryWatcher::class => [
'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
'ignore_packages' => true,
'ignore_paths' => [],
'slow' => 100,
],
Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
Watchers\RequestWatcher::class => [
'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
'ignore_http_methods' => [],
'ignore_status_codes' => [],
],
Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
Watchers\ViewWatcher::class => env('TELESCOPE_VIEW_WATCHER', true),
],
];
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('uid');
$table->string('user_code', 50)->unique()->nullable();
$table->string('username', 50)->nullable();
$table->string('password');
$table->string('first_name', 100)->nullable();
$table->string('last_name', 100)->nullable();
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('phone', 20)->nullable();
$table->boolean('is_approved')->default(false);
$table->timestamp('approved_at')->nullable();
$table->string('status_login', 50)->nullable();
$table->timestamp('last_login_at')->nullable();
$table->string('activity')->nullable();
$table->timestamp('activity_time')->nullable();
$table->string('payment_username', 50)->nullable();
$table->string('payment_password')->nullable();
$table->string('payment_organization', 100)->nullable();
$table->string('bu_code', 50)->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
};