laravel how to access column with number name of a table?

后端 未结 12 1290
闹比i
闹比i 2020-12-18 19:11

I make a table with number 22 as the column name. How to access this column?

content:

I\'ve tryed thest

$obj = Tablename::f         


        
12条回答
  •  别那么骄傲
    2020-12-18 20:03

    $table = Tablename::get();
    
    foreach ($table as $value){
       echo $value->22 // Getting column 22 from table
    }
    

提交回复
热议问题