app/Http/Controllers/API/CompanyController.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()
    {
        $companies = Company::all();
        return $this->apiResponse($companies, 200);
    }
public function index ( ) { $ companies = Company :: all ( ) ; return $ this -> apiResponse ( $ companies , 200 ) ; }
Display a listing of the resource.
Display a listing of the resource .