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