first commit

This commit is contained in:
2022-04-13 13:51:55 +07:00
commit 47e209c023
3107 changed files with 238911 additions and 0 deletions

14
app/Models/M_Locker.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class M_Locker extends Model
{
protected $table = 't_locker'; //nama table yang kita buat lewat migration adalah todo
protected $primaryKey = 'id_locker';
const CREATED_AT = null;
const UPDATED_AT = null;
}

View File

@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class M_Lokasi_Locker extends Model
{
protected $table = 't_lokasi_loker'; //nama table yang kita buat lewat migration adalah todo
protected $primaryKey = 'id_lokasi_loker';
const CREATED_AT = null;
const UPDATED_AT = null;
}

14
app/Models/M_Rekening.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class M_Rekening extends Model
{
protected $table = 't_rekening'; //nama table yang kita buat lewat migration adalah todo
protected $primaryKey = 'id_rek';
const CREATED_AT = null;
const UPDATED_AT = null;
}

14
app/Models/M_User.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class M_User extends Model
{
protected $table = 'user'; //nama table yang kita buat lewat migration adalah todo
protected $primaryKey = 'Id';
const CREATED_AT = null;
const UPDATED_AT = null;
}

44
app/Models/User.php Normal file
View File

@ -0,0 +1,44 @@
<?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;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'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',
];
}