src/APIResponse.php
public function respondWithFile($file, $mime)
    {

        return (new \Illuminate\Http\Response($file, ResponseHTTP::HTTP_OK))
            ->header('Content-Type', $mime);
    }
public function respondWithFile($file, $mime)
    {

        return (new \Illuminate\Http\Response($file, ResponseHTTP::HTTP_OK))
            ->header('Content-Type', $mime);
    }
public function respondWithFile ( $ file , $ mime ) { return ( new \ Illuminate \ Http \ Response ( $ file , ResponseHTTP :: HTTP_OK ) ) -> header ( 'Content-Type' , $ mime ) ; }
Response with file

@param \Illuminate\Contracts\Filesystem\Filesystem $file
@param                                             $mime

@return mixed
Response with file