This commit is contained in:
Adrian Hopek 2022-04-20 08:44:41 +02:00
parent cb7e150717
commit 63c7a3220e

View File

@ -15,7 +15,7 @@ class KeyResource extends JsonResource
return [ return [
"id" => $this->id, "id" => $this->id,
"user" => new SimpleUserResource($this->user), "user" => new SimpleUserResource($this->user),
"updatedAt" => $this->updated_at->toDatetimeString(), "updatedAt" => $this->updated_at->toDisplayString(),
"can" => [ "can" => [
"give" => $request->user()->can("give", $this->resource), "give" => $request->user()->can("give", $this->resource),
"take" => !$this->user()->is($request->user()), "take" => !$this->user()->is($request->user()),