{"id":6416,"date":"2014-04-17T02:03:17","date_gmt":"2014-04-17T02:03:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/17\/problem-about-laravel-artisan-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:45:32","modified_gmt":"2022-08-30T15:45:32","slug":"problem-about-laravel-artisan-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/17\/problem-about-laravel-artisan-collection-of-common-programming-errors\/","title":{"rendered":"problem about laravel-artisan-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d0942191fb6abb8c3857049126aa6c03?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nSLim<br \/>\nphp laravel laravel-4 laravel-artisan<br \/>\nWould like to know how can i execute the PHP Artisan script inside my controller of Laravel? Tried the following code but it doesn&#8217;t work.php \/Users\/sl\/Dropbox\/Development\/ABC\/artisan currency:update;This is the error returned: syntax error, unexpected &#8216;currency&#8217; (T_STRING)Thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/911aa8c8d83d7f53d1650fa7c585dd92?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\na7omiton<br \/>\nphp cli laravel-artisan<br \/>\nI&#8217;ve looked around SO and couldn&#8217;t figure out what could be wrong with me running the php artisan serve command and getting the cli stopped working error.I&#8217;m running WAMP and executing the command within my laravel projects folder (wamp\/www\/project) and get the error.When I hit debug after Windows fails to find a solution, it shows a message saying &#8220;An unhandled win32 exception occured in php.exe [7236]&#8221;Anybody know how to fix this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6ab2fc0ca68903f2696a4c96f1c94dd0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJean-Nicolas Boulay Desjardins<br \/>\nphp laravel laravel-4 composer-php laravel-artisan<br \/>\nHere is the error I am getting:Script php artisan optimize handling the post-update-cmd event returned with an error[RuntimeException] Error Output:update [&#8211;prefer-source] [&#8211;prefer-dist] [&#8211;dry-run] [&#8211;dev] [&#8211;no-dev] [&#8211;lock] [&#8211;no-plugins] [&#8211;no-custom-installers] [&#8211;no-scripts] [&#8211;no-progress] [&#8211;with-dependencies] [-v|vv|vvv|&#8211;verbose] [-o|&#8211;optimize-autoloader] [packages1] &#8230; [packagesN]This shows after:Writing lock file Generating autoload filesI tried to delete all my folders in my v<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SLim php laravel laravel-4 laravel-artisan Would like to know how can i execute the PHP Artisan script inside my controller of Laravel? Tried the following code but it doesn&#8217;t work.php \/Users\/sl\/Dropbox\/Development\/ABC\/artisan currency:update;This is the error returned: syntax error, unexpected &#8216;currency&#8217; (T_STRING)Thanks a7omiton php cli laravel-artisan I&#8217;ve looked around SO and couldn&#8217;t figure out what could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-6416","post","type-post","status-publish","format-standard","hentry","category-laravel","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6416"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6416\/revisions"}],"predecessor-version":[{"id":8826,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6416\/revisions\/8826"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}