Add backend operation to use with MyKad reader feature

This commit is contained in:
afiq.hamzah
2023-03-06 10:33:22 +08:00
parent a272171ebb
commit 812191032c
5 changed files with 50 additions and 16 deletions
+8 -2
View File
@@ -3,6 +3,7 @@
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Daerah extends Model
{
@@ -14,7 +15,7 @@ class Daerah extends Model
* @var array
*/
// protected $fillable = [
// ];
/**
@@ -23,4 +24,9 @@ class Daerah extends Model
* @var array
*/
// protected $hidden = [];
}
public function negeri(): BelongsTo
{
return $this->belongsTo(Negeri::class, 'kodnegeri', 'kodnegeri');
}
}