for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Security_group extends Model {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'security_groups';
* Attributes that should be mass-assignable.
* @var array
protected $fillable = ['name', 'modified_user_id', 'modified', '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', 'modified', 'created'];
public function security_users(){
return $this->belongsTo('App\Models\Security_group_user','security_group_id');
}
public function security_group_institution(){
return $this->hasMany('App\Models\Security_group_institution','security_group_id');