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';


Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine