/** * Bind data to the view. * * @param View $view * @return void */ public function compose(View $view) { $view->with('heder', view('admin.header')); $tables = new Cms_tables(); $activeTable = $tables->getActiveTables(); $view->with('left_column', view('admin.left_colum', ['tables' => $activeTable])); }
public function index() { $tables = new Cms_tables(); $activeTable = $tables->getActiveTables(); return view('admin.index', ['tables' => $activeTable]); }