first commit

This commit is contained in:
2026-05-14 15:28:23 +08:00
commit 4fad704fd2
4034 changed files with 1093582 additions and 0 deletions

27
app/Models/Syarikat.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Syarikat extends Model
{
use HasFactory;
protected $fillable = [
'name',
'jenis_perniagaan',
'nossm',
'alamat',
'notelefon',
'bil_cawangan',
'tarikh_luput'
];
public function users()
{
return $this->belongsToMany(User::class, 'user_syarikats', 'syarikat_id', 'user_id');
}
}