We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10f5fe9 commit c8c1dbdCopy full SHA for c8c1dbd
README.md
@@ -33,7 +33,7 @@ Schema::create('persons', function (Blueprint $table) {
33
$table->string('first_name', 100);
34
$table->string('last_name', 100);
35
$table->string('email');
36
- $table->foreignId('job_id')->constrained();
+ $table->foreignId('address_id')->constrained();
37
$table->text('bio')->nullable();
38
$table->enum('gender', ['m', 'f', 'd']);
39
$table->date('birth');
@@ -60,7 +60,7 @@ Copy & paste these to your controller validation or form request or where ever y
60
'first_name' => ['required', 'string', 'min:1', 'max:100'],
61
'last_name' => ['required', 'string', 'min:1', 'max:100'],
62
'email' => ['required', 'string', 'min:1', 'max:255'],
63
- 'job_id' => ['required', 'exists:jobs,id'],
+ 'address_id' => ['required', 'exists:addresss,id'],
64
'bio' => ['nullable', 'string', 'min:1'],
65
'gender' => ['required', 'string', 'in:m,f,d'],
66
'birth' => ['required', 'date'],
0 commit comments