app/Http/Controllers/ClienteController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $clientes = Cliente::all();
        return json_encode($clientes);
    }
public function index ( ) { $ clientes = Cliente :: all ( ) ; return json_encode ( $ clientes ) ; }
Display a listing of the resource.
Display a listing of the resource .