for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Distilleries\Expendable\Models;
class Service extends BaseModel {
protected $fillable = ['id', 'action'];
public function permissions()
{
return $this->hasMany('Distilleries\Expendable\Models\Permission');
}
public function getByAction($action) {
return $this->where('action', '=', $action)->get();