setup module

This commit is contained in:
2024-04-10 18:06:18 +05:45
parent e0fe321cb7
commit 1dbc6cabf8
11 changed files with 215 additions and 158 deletions

16
app/Models/Branches.php Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Branches extends Model
{
use HasFactory;
protected $table = "tbl_branches";
protected $primaryKey = "branch_id";
protected $guarded = [];
}

View File

@ -9,7 +9,7 @@ class Cities extends Model
{
use HasFactory;
protected $table = 'tbl_citites';
protected $table = 'tbl_cities';
protected $primaryKey = 'city_id';
protected $guarded = [];