cep-api/app/Http/Controllers/CepController.php
/**
     * Display CEPs that have part of logradouro.
     *
     * @param  string  $logradouro
     * @return \Illuminate\Http\Response
     */
Display CEPs that have part of logradouro.
@param  string  $logradouro
@return \Illuminate\Http\Response
Display CEPs that have part of logradouro . @param string $logradouro @return \ Illuminate \ Http \ Response
public function search($logradouro)
    {
        return Cep::query()
                    ->where('logradouro', 'LIKE', "%{$logradouro}%")->get();
    }
public function search ( $ logradouro ) { return Cep :: query ( ) -> where ( 'logradouro' , 'LIKE' , " % { $ logradouro } % " ) -> get ( ) ; }
Display CEPs that have part of logradouro.
Display CEPs that have part of logradouro .