- * Creates the application.
- *
- * @return \Illuminate\Foundation\Application
- */
- public function createApplication()
- {
- $app = require __DIR__.'/../bootstrap/app.php';
-
- $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
-
- return $app;
- }
-
- public function asAdmin()
- {
- if($this->admin === null) {
- $this->admin = \BookStack\User::find(1);
- }
- return $this->actingAs($this->admin);
- }
-
- /**
- * Quickly sets an array of settings.
- * @param $settingsArray