mirror of
https://github.com/devfake/flox.git
synced 2024-11-23 18:42:30 +01:00
1a1753181f
* create genres table and translate media_type * parse genres from TMDb and modify artisan db command * parse genres on migration * Save genres in new table (via relation) * Implode genres as string. Update genres in refresh. * add tests for genres * fix icon for src * display genres on own page include few ui tweaks
26 lines
463 B
PHP
26 lines
463 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
trait CreatesApplication {
|
|
|
|
/**
|
|
* Creates the application.
|
|
*
|
|
* @return \Illuminate\Foundation\Application
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
Hash::setRounds(4);
|
|
|
|
return $app;
|
|
}
|
|
}
|