raphadko
4736
6
Laravel

Laravel Validation - Check if a column exists

Posted 3 years ago by raphadko

I'm using laravel's awesome validation classes, but I need to know if a column exists in the table (not a row in a given column, the column itself)

Is there a quick/easy way to check this without having to write a custom validation rule? If not, how could I write a validation rule for that?

Thanks

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.