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 SystemCategories extends Model
{
protected $primaryKey = 'cat_id';
protected $fillable = ['name'];
protected $hidden = ['created_at', 'updated_at'];
public function SystemTypes()
return $this->hasMany('App\SystemTypes', 'cat_id', 'cat_id');
}