mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Update repository base code to be cleaner and make use of PHP 7 features
This commit is contained in:
@@ -186,6 +186,7 @@ $factory->define(Pterodactyl\Models\Database::class, function (Faker $faker) {
|
||||
'database_host_id' => $faker->randomNumber(),
|
||||
'database' => str_random(10),
|
||||
'username' => str_random(10),
|
||||
'remote' => '%',
|
||||
'password' => $password ?: bcrypt('test123'),
|
||||
'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
|
||||
'updated_at' => \Carbon\Carbon::now()->toDateTimeString(),
|
||||
|
||||
@@ -122,7 +122,7 @@ class EggSeeder extends Seeder
|
||||
$file = new UploadedFile($file->getPathname(), $file->getFilename(), 'application/json', $file->getSize());
|
||||
|
||||
try {
|
||||
$egg = $this->repository->withColumns('id')->findFirstWhere([
|
||||
$egg = $this->repository->setColumns('id')->findFirstWhere([
|
||||
['author', '=', $decoded->author],
|
||||
['name', '=', $decoded->name],
|
||||
['nest_id', '=', $nest->id],
|
||||
|
||||
Reference in New Issue
Block a user