Show column names of a model in Laravel Eloquent

后端 未结 0 1588
庸人自扰
庸人自扰 2020-12-05 11:37

I need to Show column names of a model in Laravel Eloquent. I need a array to use like:

if(in_array($colum, $columns))         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题