app/Http/Controllers/Admin/expensecategoryController.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()
    {
        $expensecategory = Expensecategory::all();
        return view('Admin.Expensecategory.view',compact('expensecategory'));
    }
public function index ( ) { $ expensecategory = Expensecategory :: all ( ) ; return view ( 'Admin.Expensecategory.view' , compact ( 'expensecategory' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .