app/Http/Resources/ResponseTrait.php
/**
     * Get additional data that should be returned with the resource array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
Get additional data that should be returned with the resource array.
@param  \Illuminate\Http\Request  $request
@return array
Get additional data that should be returned with the resource array . @param \ Illuminate \ Http \ Request $request @return array
public function with($request)
    {
        return [
            "status"   => $this->status,
            "messages" => $this->messages,
            "code"     => $this->code,
        ];
    }
public function with ( $ request ) { return [ " status " => $ this -> status , " messages " => $ this -> messages , " code " => $ this -> code , ] ; }
Get additional data that should be returned with the resource array.
Get additional data that should be returned with the resource array .