diff --git a/src/Http/Controllers/RepositoryDestroyController.php b/src/Http/Controllers/RepositoryDestroyController.php index cf3ed54dd..384f456de 100644 --- a/src/Http/Controllers/RepositoryDestroyController.php +++ b/src/Http/Controllers/RepositoryDestroyController.php @@ -2,7 +2,6 @@ namespace Binaryk\LaravelRestify\Http\Controllers; -use Binaryk\LaravelRestify\Controllers\RestResponse; use Binaryk\LaravelRestify\Exceptions\Eloquent\EntityNotFoundException; use Binaryk\LaravelRestify\Exceptions\UnauthorizedException; use Binaryk\LaravelRestify\Http\Requests\RepositoryDestroyRequest; @@ -10,7 +9,6 @@ use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Http\JsonResponse; -use Illuminate\Support\Facades\DB; use Throwable; /** diff --git a/src/Http/Controllers/RepositoryStoreController.php b/src/Http/Controllers/RepositoryStoreController.php index d2bd85c1d..a91f71b2b 100644 --- a/src/Http/Controllers/RepositoryStoreController.php +++ b/src/Http/Controllers/RepositoryStoreController.php @@ -2,16 +2,13 @@ namespace Binaryk\LaravelRestify\Http\Controllers; -use Binaryk\LaravelRestify\Controllers\RestResponse; use Binaryk\LaravelRestify\Exceptions\Eloquent\EntityNotFoundException; use Binaryk\LaravelRestify\Exceptions\UnauthorizedException; use Binaryk\LaravelRestify\Http\Requests\RepositoryStoreRequest; use Binaryk\LaravelRestify\Repositories\Repository; -use Binaryk\LaravelRestify\Restify; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Http\JsonResponse; -use Illuminate\Support\Facades\DB; use Throwable; /** diff --git a/src/Http/Controllers/RepositoryUpdateController.php b/src/Http/Controllers/RepositoryUpdateController.php index 296c3d96c..547b9c163 100644 --- a/src/Http/Controllers/RepositoryUpdateController.php +++ b/src/Http/Controllers/RepositoryUpdateController.php @@ -2,7 +2,6 @@ namespace Binaryk\LaravelRestify\Http\Controllers; -use Binaryk\LaravelRestify\Controllers\RestResponse; use Binaryk\LaravelRestify\Exceptions\Eloquent\EntityNotFoundException; use Binaryk\LaravelRestify\Exceptions\UnauthorizedException; use Binaryk\LaravelRestify\Http\Requests\RepositoryStoreRequest; @@ -11,7 +10,6 @@ use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Http\JsonResponse; -use Illuminate\Support\Facades\DB; use Throwable; /** diff --git a/src/Repositories/Crudable.php b/src/Repositories/Crudable.php index 8b70b4001..e61ebafb8 100644 --- a/src/Repositories/Crudable.php +++ b/src/Repositories/Crudable.php @@ -49,7 +49,7 @@ public function store(RestifyRequest $request) return (new static ($model)) ->response() ->setStatusCode(RestResponse::REST_RESPONSE_CREATED_CODE) - ->header('Location', Restify::path() . '/' . self::uriKey() . '/' . $model->id); + ->header('Location', Restify::path().'/'.self::uriKey().'/'.$model->id); } /** @@ -85,5 +85,4 @@ public function destroy(RestifyRequest $request) return $this->response() ->setStatusCode(RestResponse::REST_RESPONSE_DELETED_CODE); } - }