app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $transPoint = \DB::table('stores')->select('id','name')->get();
        $services = \DB::table('services')->select('id','name')->get();
        return view('dashboard', compact('transPoint', 'services'));
    }
public function index ( ) { $ transPoint = \ DB :: table ( 'stores' ) -> select ( 'id' , 'name' ) -> get ( ) ; $ services = \ DB :: table ( 'services' ) -> select ( 'id' , 'name' ) -> get ( ) ; return view ( 'dashboard' , compact ( 'transPoint' , 'services' ) ) ; }
Show the application dashboard.
Show the application dashboard .