This commit is contained in:
2025-08-22 09:41:04 +07:00
parent 949e98ca4a
commit 8fa2d2cdf7
705 changed files with 130767 additions and 24 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Customer extends Authenticatable implements MustVerifyEmail
{
use HasApiTokens, HasFactory, Notifiable;
use SoftDeletes;
protected $table = 'auth_customers';
protected $fillable = [
'name',
'username',
'email',
'password',
'email_verified_at',
'customer_type',
'nib',
'npwp',
'address',
'phone_no',
'pic',
'is_active',
];
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
class Instalasi extends Model
{
//
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
class JenisLayanan extends Model
{
//
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
class JenisUttp extends Model
{
//
}
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Master\Provinsi;
class KabupatenKota extends Model
{
use SoftDeletes;
protected $table = 'master_kabupaten_kota';
protected $fillable = [
'nama', 'kode', 'provinsi_id'
];
public function provinsi()
{
return $this->belongsTo(Provinsi::class, 'provinsi_id');
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
class Laboratorium extends Model
{
//
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Provinsi extends Model
{
use SoftDeletes;
protected $table = 'master_provinsi';
protected $fillable = [
'nama', 'kode',
];
}
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Models\Master;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Uml extends Model
{
use SoftDeletes;
protected $table = 'master_uml';
protected $fillable = [
'nama',
'kode',
'email',
'alamat',
'telepon',
'is_default',
];
}
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory;
protected $table = 'auth_users';
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'email',
'password',
'role',
];
/**
* The attributes that should be hidden for serialization.
*
* @var list<string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
//'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}