app/Http/Controllers/New folder/CartController boo.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        Cart::add($request->id, $request->title, 1, $request->price)
        ->associate('App\Product');
        return redirect()->route('products.show',$request->slug)->with('success', 'Votre offre a été miser');
    }
public function store ( Request $ request ) { Cart :: add ( $ request -> id , $ request -> title , 1 , $ request -> price ) -> associate ( 'App\Product' ) ; return redirect ( ) -> route ( 'products.show' , $ request -> slug ) -> with ( 'success' , 'Votre offre a été miser'); }
Store a newly created resource in storage.
Store a newly created resource in storage .
/*change it to the condition of higher price + timer end */