This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

billyZduke
billyZduke

A PHP example of my question:

echo (Schema::hasColumns('users', ['email','username','height','weight','favorite_color'])) ? 'Has All Columns' : '???';

Does Schema::hasColumns() return false if any one of the column names in the array is not present? Or do ALL of the named columns have to be missing from the table for it to return false?

Last updated

KurtJensen
billyZduke
billyZduke

Excellent, thanks! I was already preparing my next migration with that answer in mind...

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.