mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +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…
Reference in New Issue
Block a user