]> BookStack Code Mirror - bookstack/blobdiff - database/seeders/DummyContentSeeder.php
Guest create page: name field autofocus
[bookstack] / database / seeders / DummyContentSeeder.php
index cb9987df7004974bd13cf77cfae2896b703958fd..f61e4e13df394e20adc51170110cf97feec37890 100644 (file)
@@ -10,7 +10,7 @@ use BookStack\Auth\User;
 use BookStack\Entities\Models\Bookshelf;
 use BookStack\Entities\Models\Chapter;
 use BookStack\Entities\Models\Page;
-use BookStack\Entities\Tools\SearchIndex;
+use BookStack\Search\SearchIndex;
 use Illuminate\Database\Seeder;
 use Illuminate\Support\Facades\Hash;
 use Illuminate\Support\Str;
@@ -69,7 +69,7 @@ class DummyContentSeeder extends Seeder
         ]);
         $token->save();
 
-        app(JointPermissionBuilder::class)->buildJointPermissions();
+        app(JointPermissionBuilder::class)->rebuildForAll();
         app(SearchIndex::class)->indexAllEntities();
     }
 }