You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
420 B
25 lines
420 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Manager;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ManagerProject extends Model
|
|
{
|
|
protected $table = "manager_project";
|
|
protected $fillable = [
|
|
'project_id', 'manager_id'
|
|
];
|
|
|
|
public function project()
|
|
{
|
|
return $this->belongsTo(Project::class);
|
|
}
|
|
|
|
public function manager() {
|
|
return $this->belongsTo(Manager::class);
|
|
}
|
|
|
|
}
|