skip to Main Content

Laravel – Undefined Price Display

I have a field called price in the plans table. public function up(): void { Schema::create('plans', function (Blueprint $table) { $table->id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->foreignId('doctor_id')->constrained()->cascadeOnDelete(); $table->foreignId('type_id')->constrained()->cascadeOnDelete(); $table->string('price')->nullable(); $table->string('description')->nullable(); $table->timestamps(); }); } And I have two tags, select option and span. <select class="form-select"…

VIEW QUESTION

JavaScript dialog delete error in Laravel 9

I want to create a confirmation dialog in JavaScript before deleting an item. My JavaScript code function confirmerSuppression() { var confirmation = confirm("Êtes-vous sûr de vouloir supprimer cet élément ?"); if (confirmation) { window.location.href = '/tiers.destroy/' + id; // }…

VIEW QUESTION
Back To Top
Search