app/Http/Controllers/HomeController.php
/**
     * Show the home page.
     *
     * @return Response
     */
Show the home page.
@return Response
Show the home page . @return Response
public function home()
    {
        $articles = Article::all()->take(3);
        return view('home.index', [
            'articles' => $articles,
        ]);
    }
public function home ( ) { $ articles = Article :: all ( ) -> take ( 3 ) ; return view ( 'home.index' , [ 'articles' => $ articles , ] ) ; }
Show the home page.
Show the home page .