first commit
This commit is contained in:
22
app/Models/Banks.php
Normal file
22
app/Models/Banks.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\User;
|
||||
use App\Models\Suppliers;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Banks extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'code',
|
||||
'name',
|
||||
];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function suppliers()
|
||||
{
|
||||
return $this->hasMany(Suppliers::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user