app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $news = News::orderBy('id', 'DESC')->take(8)->get();
        return view('frontend.index', ['news' => $news ]);
    }
public function index ( ) { $ news = News :: orderBy ( 'id' , 'DESC' ) -> take ( 8 ) -> get ( ) ; return view ( 'frontend.index' , [ 'news' => $ news ] ) ; }
Show the application dashboard.
Show the application dashboard .