src/System/Controllers/ModuleController.php
public function index()
    {
        $modules = Module::all();
        $moduleDataGrid = new ModuleDataGrid($modules);

        return view('avored-framework::system.module.index')
            ->with('modules', $modules)
            ->with('dataGrid', $moduleDataGrid->dataGrid);
    }
public function index()
    {
        $modules = Module::all();
        $moduleDataGrid = new ModuleDataGrid($modules);

        return view('avored-framework::system.module.index')
            ->with('modules', $modules)
            ->with('dataGrid', $moduleDataGrid->dataGrid);
    }
public function index ( ) { $ modules = Module :: all ( ) ; $ moduleDataGrid = new ModuleDataGrid ( $ modules ) ; return view ( 'avored-framework::system.module.index' ) -> with ( 'modules' , $ modules ) -> with ( 'dataGrid' , $ moduleDataGrid -> dataGrid ) ; }
Display a listing of the modules.

@return \Illuminate\Http\Response
Display a listing of the modules .