Prevent MassAssignmentException

This commit is contained in:
Toby Zerner 2015-09-06 10:57:17 +09:30
parent f02d0ec602
commit f8b96c6ca9

View File

@ -23,6 +23,8 @@ class AddDefaultLikePermissions extends Migration
*/
public function up()
{
Permission::unguard();
$permission = Permission::firstOrNew($this->getPermissionAttributes());
$permission->save();