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