public function index() { $entities = Entity::all(); $employees = Employee::all(); $menu = 'data'; return View::make('entities.index', compact('employees', 'entities', 'menu')); }
public function getShowentity() { $data_entity = Entity::all(); //return view('books.showbook_data')->with('book',$data_book) ; // ส่งค่าไปที่ View\ return view('sales.show_entity_data')->with('entity', $data_entity); // ส่งค่าไปที่ View //return view('sales.show_entity_data') ; }
public function all($options = array()) { return parent::all($options); }
public function getShowentity() { $data_entity = Entity::all(); return view('sales.show_entity_data')->with('entity', $data_entity); // ส่งค่าไปที่ View }