created tables, migrate and relationships
This commit is contained in:
14
crm-panel/app/Models/Employee.php
Normal file
14
crm-panel/app/Models/Employee.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Employee extends Model
|
||||
{
|
||||
//
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user