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