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 Security_group_institution extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'security_group_institutions';
* Attributes that should be mass-assignable.
* @var array
protected $fillable = ['security_group_id', 'institution_id', 'created_user_id', 'created'];
* The attributes excluded from the model's JSON form.
protected $hidden = [];
* The attributes that should be casted to native types.
protected $casts = [];
* The attributes that should be mutated to dates.
protected $dates = ['modified', 'created', 'created', 'created'];
public function institution(){
return $this->belongsTo('App\Institution','institution_id');
}
public function institution_classes(){
return $this->hasMany('App\Institution_class','institution_id','institution_id');
public function security_group(){
return $this->belongsTo('App\Security_group','security_group_id');