app/Http/Controllers/API/InvestissementControler.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()
    {
        $investissements = $this->investissementRepository->getData();
        return $this->sendResponse(InvestissementResource::collection($investissements), "succés.");
    }
public function index ( ) { $ investissements = $ this -> investissementRepository -> getData ( ) ; return $ this -> sendResponse ( InvestissementResource :: collection ( $ investissements ) , " succés." ) ; }
Display a listing of the resource.
Display a listing of the resource .