Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

22 řádky
635B

  1. <?php
  2. declare(strict_types=1);
  3. use Illuminate\Database\Capsule\Manager as Capsule;
  4. use Cartalyst\Sentinel\Native\Facades\Sentinel;
  5. use Cartalyst\Sentinel\Native\SentinelBootstrapper;
  6. prepareSqliteDatabase('sqlite:' . __DIR__ . '/../database/app.sqlite');
  7. $capsule = new Capsule();
  8. $capsule->addConnection([
  9. 'driver' => 'sqlite',
  10. 'database' => realpath(__DIR__ . '/../database/app.sqlite') ?: __DIR__ . '/../database/app.sqlite',
  11. 'prefix' => '',
  12. ]);
  13. $capsule->setAsGlobal();
  14. $capsule->bootEloquent();
  15. $bootstrapper = new SentinelBootstrapper(__DIR__ . '/../config/sentinel.php');
  16. Sentinel::instance($bootstrapper);

Powered by TurnKey Linux.