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()
    {
        $current_user_id = auth()->user()->id;
        return view('home', [
            'articles'=> DB::table('articles')
            ->where('user_id', $current_user_id)
            ->get()
        ]);
    }
public function index ( ) { $ current_user_id = auth ( ) -> user ( ) -> id ; return view ( 'home' , [ 'articles' => DB :: table ( 'articles' ) -> where ( 'user_id' , $ current_user_id ) -> get ( ) ] ) ; }
Show the application dashboard.
Show the application dashboard .