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()
    {
        $allproduct=  Product::orderBy('updated_at', 'desc')->paginate(8);
        return view('home',compact('allproduct'));
    }
public function index ( ) { $ allproduct = Product :: orderBy ( 'updated_at' , 'desc' ) -> paginate ( 8 ) ; return view ( 'home' , compact ( 'allproduct' ) ) ; }
Show the application dashboard.
Show the application dashboard .