add to cart button not redirecting me to login page if im not login
@bernardchisumo40547 ай бұрын
class CartController extends Controller { public function cart(Product $product) { Auth::user()->carts()->create([ 'product_id' => $product->id, ]); Flasher::addSuccess('Product Added to the Cart Created Successfully!'); return redirect()->back(); } }
@muthurams48098 ай бұрын
Sir upload employee management systems how to create in ir way simple.. pls upload