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()
    {
        $categories = Category::all();
        $slides = Slide::all();
        return view('welcome', compact('categories', 'slides'));
    }
public function index ( ) { $ categories = Category :: all ( ) ; $ slides = Slide :: all ( ) ; return view ( 'welcome' , compact ( 'categories' , 'slides' ) ) ; }
Show the application dashboard.
Show the application dashboard .