We really can't read this code... You can use the backticks ``` and put your code between them. This way it will be displayed in a better way.
Add tax in my eCommerce app
i am creating eCommerce application with laravel when i creating order i dont know where i can take the value of tax
put it in the setting on the website or ?? please help me for the best solution to make it
it my schema
Schema::create('orders', function (Blueprint $table) { $table->bigIncrements('id'); $table->unsignedBigInteger('user_id'); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->unsignedBigInteger('address_id'); $table->foreign('address_id')->references('id')->on('addresses')->onDelete('cascade'); $table->unsignedBigInteger('coupon_id')->nullable(); $table->foreign('coupon_id')->references('id')->on('coupons')->onDelete('set null'); $table->enum('status', ['in_progress', 'accepted', 'on_delivery', 'delivered', 'canceled']); $table->decimal('total_product_count'); $table->decimal('discount')->default(0); $table->decimal('total'); $table->decimal('total_paid'); $table->timestamps(); });
Please or to participate in this conversation.