Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"laravel/pint": "^1.14",
"nunomaduro/collision": "^8.8",
"larastan/larastan": "^3.0",
"orchestra/testbench": "^10.0.0||^9.0.0",
"orchestra/testbench": "^11.1.0",
"pestphp/pest": "^4.0",
"pestphp/pest-plugin-arch": "^4.0",
"pestphp/pest-plugin-laravel": "^4.0",
Expand Down
3 changes: 2 additions & 1 deletion config/query-params.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

declare(strict_types=1);
use App\Support\QueryDrivers\TranslationDriver;

return [
/*
Expand All @@ -24,6 +25,6 @@
|
*/
'drivers' => [
'translatable' => App\Support\QueryDrivers\TranslationDriver::class,
'translatable' => TranslationDriver::class,
],
];
3 changes: 2 additions & 1 deletion src/Support/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Victormgomes\QueryParams\Support;

use Illuminate\Database\Eloquent\ModelInfo;
use Illuminate\Database\Eloquent\ModelInspector;
use Illuminate\Support\Collection;
use Victormgomes\QueryParams\Enums\AssociatedIndex;
Expand All @@ -14,7 +15,7 @@ class Resource
public static function generate(string $modelFQCN, $connection = null): array
{
$inspector = new ModelInspector(app());
/** @var \Illuminate\Database\Eloquent\ModelInfo $modelInfo */
/** @var ModelInfo $modelInfo */
$modelInfo = $inspector->inspect($modelFQCN, $connection);

$attributes = [];
Expand Down