app/View/Components/mostRecent.php
/**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
Get the view / contents that represent the component.
Get the view / contents that represent the component .
public function render()
    {
        $mostRecentArticles = Articles::all()->latest();
        return view('components.most-recent', ['mostRecentArticles'=> dd($mostRecentArticles)]);
    }
public function render ( ) { $ mostRecentArticles = Articles :: all ( ) -> latest ( ) ; return view ( 'components.most-recent' , [ 'mostRecentArticles' => dd ( $ mostRecentArticles ) ] ) ; }
Get the view / contents that represent the component.
Get the view / contents that represent the component .