I make a table with number 22 as the column name. How to access this column?
content:
I\'ve tryed thest
$obj = Tablename::f
You can use model attribute $maps to give your troublesome column a different name. Try
$maps = ['22' => 'twentytwo']; $hidden = ['22']; $appends = ['twentytwo'];
Then with your model instance
echo $model->twentytwo;