does not look like a problem with the aadhar column. Also, you have said that the column is required and is 16 digits so it should not get as far as posting to the table? Are you sure its being sent to the right controller?
Yes I am sure, it is going to right controller,
Actually user just register with their email and password, Now after logging in they update other details where aadhar column is also present.
Now during updation user may or may not fill all the details in one go. So I have taken nullable() in migration.
So that user can submit the form without filling each and every field. And can partially update their details.
If I remove required condition from validation then also I am getting the same error.
@Snapey very strange indeed.. perhaps the DB was created manually, separate from the migration? In which case the migration wouldn't matter at all really.
SQLSTATE[HY000]: General error: 1005 Can't create table account.#sql-200c_2d8 (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alt
er table jobs add constraint jobs_service_id_foreign foreign key (service_id) references services (id) on delete cascade)....
i had just tried the above code but the above error was given