@@ -15,6 +15,9 @@ |
||
| 15 | 15 | /** @var array */ |
| 16 | 16 | private $defaultParameters; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param null|Model $model |
|
| 20 | + */ |
|
| 18 | 21 | public function __construct(?Model $model, array $defaultParameters = []) |
| 19 | 22 | { |
| 20 | 23 | $this->model = $model; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Spatie\LaravelEndpointResources; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Database\Eloquent\Model; |
| 6 | -use Illuminate\Routing\Exceptions\UrlGenerationException; |
|
| 7 | 6 | use Illuminate\Routing\Route; |
| 8 | 7 | use ReflectionParameter; |
| 9 | 8 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Spatie\LaravelEndpointResources; |
| 4 | 4 | |
| 5 | 5 | use Closure; |
| 6 | -use Illuminate\Support\Arr; |
|
| 7 | 6 | |
| 8 | 7 | /** @mixin \Illuminate\Http\Resources\Json\JsonResource */ |
| 9 | 8 | trait HasEndpoints |