Added organizer in visitor entry migration file and model file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 2m15s
Laravel Larastan / larastan (pull_request) Failing after 4m3s

This commit is contained in:
dhanabalan
2026-07-26 10:43:37 +05:30
parent 28503c0953
commit 6f5bc9ad38
2 changed files with 32 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ class VisitorEntry extends Model
protected $fillable = [ protected $fillable = [
'mobile_number', 'mobile_number',
'organizer',
'register_id', 'register_id',
'name', 'name',
'company', 'company',

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$sql3 = <<<'SQL'
ALTER TABLE visitor_entries
ADD COLUMN organizer TEXT DEFAULT NULL
SQL;
DB::statement($sql3);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('visitor_entries', function (Blueprint $table) {
// //
// });
}
};