for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* @property mixed departmentid
* @property mixed userid
*/
class DepartmentMembers extends Model
{
* The database table used by the model.
*
* @var string
protected $table = 'department_members';
* members relation.
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
public function members()
return $this->belongsToMany('App\DepartmentMembers');
}
* teams relation.
public function teams()
return $this->belongsToMany('App\Teams');