Skip to content

Commit

Permalink
Fix PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 18, 2018
1 parent bf9b804 commit 8bed62e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions eloquent-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Before diving into all of the options available to you when writing resources, l
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -103,7 +103,7 @@ Once the resource collection class has been generated, you may easily define any
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -144,7 +144,7 @@ In essence, resources are simple. They only need to transform a given model into
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -175,7 +175,7 @@ If you would like to include related resources in your response, you may add the
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -216,7 +216,7 @@ However, if you need to customize the meta data returned with the collection, it
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -310,7 +310,7 @@ Of course, you may be wondering if this will cause your outer-most resource to b
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -405,7 +405,7 @@ Sometimes you may wish to only include an attribute in a resource response if a
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -435,7 +435,7 @@ Sometimes you may have several attributes that should only be included in the re
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -467,7 +467,7 @@ Ultimately, this makes it easier to avoid "N+1" query problems within your resou
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand All @@ -491,7 +491,7 @@ In addition to conditionally including relationship information in your resource
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand All @@ -513,7 +513,7 @@ Some JSON API standards require the addition of meta data to your resource and r
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand Down Expand Up @@ -543,7 +543,7 @@ Sometimes you may wish to only include certain meta data with a resource respons
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand All @@ -554,7 +554,7 @@ Sometimes you may wish to only include certain meta data with a resource respons
/**
* Get additional data that should be returned with the resource array.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function with($request)
Expand Down Expand Up @@ -612,7 +612,7 @@ Alternatively, you may define a `withResponse` method within the resource itself
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
Expand All @@ -625,8 +625,8 @@ Alternatively, you may define a `withResponse` method within the resource itself
/**
* Customize the outgoing response for the resource.
*
* @param \Illuminate\Http\Request
* @param \Illuminate\Http\Response
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function withResponse($request, $response)
Expand Down

0 comments on commit 8bed62e

Please sign in to comment.