dimanche 24 janvier 2016

Laravel - Column name with _ returning a t_lnumber error

My database schema has the following column names:

1_1, 1_2, 1_3 etc...

Within my Controller, I am trying to add to these columns, but it's returning the following error:

syntax error, unexpected '1' (T_LNUMBER), expecting identifier
(T_STRING) or variable (T_VARIABLE) or '{' or '$'

The line at which it's occurring is:

  $audit->1_1 = Input::get('1_1');

Any help would be hugely appreciated.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1nI2fZ9
via IFTTT

Aucun commentaire:

Enregistrer un commentaire