30 lines
527 B
PHP
30 lines
527 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
class Pembeli extends Authenticatable
|
|
{
|
|
use Notifiable;
|
|
|
|
protected $table = 'pembelis';
|
|
|
|
protected $fillable = [
|
|
'nama_lengkap',
|
|
'username',
|
|
'password',
|
|
'no_hp',
|
|
'alamat'
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
];
|
|
|
|
public function transaksis()
|
|
{
|
|
return $this->hasMany(Transaksi::class, 'pembeli_id');
|
|
}
|
|
} |