コード例 #1
0
 /**
  * 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]));
 }
コード例 #2
0
 public function getActiveTables()
 {
     return Cms_tables::where('active', '=', '1')->get();
 }
コード例 #3
0
 public function addParsers($id)
 {
     if ((int) $id) {
         $id = (int) $id;
         $pp = ParserController::getParsers();
         $table = Cms_tables::find($id);
         return view('admin.add_parsers', ['parsers' => $pp, 'table' => $table]);
     }
 }