Asad
126
2
Laravel

Having Route Problem in Laravel Route [Home.checkout] not defined. (View: C:\xampp\htdocs\mammaskitchen\resources\views\welcome.blade.php)

Posted 1 year ago by Asad
<a href="{{route('Home.checkout',$item->id)}}">


    public function index()
{
    $categories=Category::all();
    $items=Item::all();
    $sliders=Slider::all();
    return view('welcome',compact('sliders','categories','items'));
}
public function checkout(){
    $item=Item::find($id);
    return $item;
}


Route::get('/','[email protected]')->name('welcome');

     Route [Home.checkout] not defined. (View:       
     C:\xampp\htdocs\mammaskitchen\resources\views\welcome.blade.php)

Please sign in or create an account to participate in this conversation.