mardi 31 mai 2016

PHP Fatal error: Call to undefined function table() in eval()'d code on line 1 Laravel Artisan Tinker

I'm having a problem with learning Laravel so i decided to follow a tutorial at laracast hoping that i could understand something at the end,

i installed homestead and "SSh"ed into my VM and into "~/Code/Laravel" and tried to work with tinker as they did on the tutorial ,, Tinker works but wont execute any command not even a simple selection like (>>> DB:table('projects')-get()) , but keeps giving me the following error:

PHP Fatal error:  Call to undefined function table() in eval()'d code on line 1

screen shot of the terminal attached i can run simple mathematical operations and echo commands, but noting related to database, although i migrated the table (projects) successfully, and i was planing to seed it through tinker (by seed i mean input some data into it - is that what seed means in the first place? -).

my OS is Ubuntu if it matters!

thank you in advance!



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

Aucun commentaire:

Enregistrer un commentaire