- First add Model of that table which u want to use in that controller .
- if already make function to show that make when you are want to show or database value then just code inside it.
- first we need make a key in controller when we want to display that blade controller .
public function m()
{
$data= Agent::all();
return view('Super-Admin.Trans Regis.transaction',['user'=>$data]);
}
public function disp()
{
$data = item::all();
$select = DB::select('select * from catitems');
return view('Resturant Menu.Item-Record')->with('items',$data)->with('mirhusen',$select) ;
return redirect('/Menu_Item');
}
simple we can say that u just make key in that controller when u want to show that value
0 Comments