Advertisement
Guest User

controller

a guest
Feb 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public function form(Request $request) {
  2. $view['status'] = ['1'=>'Active', '0' => 'Inactive', '2'=>'Blacklist'];
  3. if ($request->has('id')) {
  4. $id = $request->input('id');
  5. $data = Consultant::find($id);
  6. if (!empty($data)) {
  7. $view['data'] = $data;
  8. }
  9. }
  10. $view['page_title'] = "MASTER DATA CONSULTANT";
  11. return view('Master.Consultant.form', $view);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement