mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 14:43:10 +08:00
Prevent MassAssignmentException
This commit is contained in:
parent
f02d0ec602
commit
f8b96c6ca9
@ -23,6 +23,8 @@ class AddDefaultLikePermissions extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Permission::unguard();
|
||||
|
||||
$permission = Permission::firstOrNew($this->getPermissionAttributes());
|
||||
|
||||
$permission->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user