Errors while running Artisan in Laravel 4 -


whenever try run php artisan commands command line, following error(s):

{"error":{"type":"symfony\\component\\debug\\exception\\fatalerrorexception","me ssage":"call member function connection() on non-object","file":"c:\\wamp \\www\\cms\\vendor\\laravel\\framework\\src\\illuminate\\database\\eloquent\\mod el.php","line":2649}}{"error":{"type":"symfony\\component\\debug\\exception\\fat alerrorexception","message":"call member function connection() on non-obj ect","file":"c:\\wamp\\www\\cms\\vendor\\laravel\\framework\\src\\illuminate\\da tabase\\eloquent\\model.php","line":2649}}     

i have specified laravel version 4.1.* in composer.json since can't run artisan, don't know exact version.

this problem didn't use happen before. , website seems running fine, despite of errors occuring in php artisan. composer commands work fine, far can tell.

any ideas why happening now?

this error seems have happened, because mail configuration in app/config/mail.php, made retrieve values database instead of specifying configuration options directly in file.

so, had check if function getting value called web or command line. if function called command line, returned empty string.

if(php_sapi_name() == 'cli' && empty($_server['remote_addr'])) {     return ''; } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -