app/Http/Controllers/CooperateController.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()
    {
        $cooperates = CooperateInfo::orderBy('order', 'asc')->get();
        $minOrder = CooperateInfo::getMinOrder();
        $maxOrder = CooperateInfo::getCurrentMaxOrder();
        return view('layouts.admin.cooperate.index')
            ->with('coops',$cooperates)
            ->with('min', $minOrder)
            ->with('max', $maxOrder)
            ->with('count', count($cooperates));
    }
public function index ( ) { $ cooperates = CooperateInfo :: orderBy ( 'order' , 'asc' ) -> get ( ) ; $ minOrder = CooperateInfo :: getMinOrder ( ) ; $ maxOrder = CooperateInfo :: getCurrentMaxOrder ( ) ; return view ( 'layouts.admin.cooperate.index' ) -> with ( 'coops' , $ cooperates ) -> with ( 'min' , $ minOrder ) -> with ( 'max' , $ maxOrder ) -> with ( 'count' , count ( $ cooperates ) ) ; }
Display a listing of the resource.
Display a listing of the resource .