Shortcut way to get fillable fields from a large table for Laravel Model
SELECT CONCAT('"',COLUMN_NAME,'",') as fillable
FROM information_schema.columns
WHERE table_name = 'my_table';
FROM information_schema.columns
WHERE table_name = 'my_table';
Comments
Post a Comment