FEATURE: add form for setting default permissions and fix few bugs

This commit is contained in:
Michal Kváček
2017-08-23 21:34:56 +02:00
parent 0aaa626124
commit e0f5cba9a4
31 changed files with 150 additions and 482 deletions
+6
View File
@@ -2,6 +2,7 @@
namespace App\Models\Content;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
/**
@@ -22,4 +23,9 @@ class ContentHistory extends Model
'old_value'
];
protected $guarded = [];
public function author()
{
return $this->belongsTo(User::class, 'user_id');
}
}