{"id":6338,"date":"2014-04-16T09:33:38","date_gmt":"2014-04-16T09:33:38","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/16\/laravel-4-migrations-class-not-found-collection-of-common-programming-errors-2\/"},"modified":"2022-08-30T15:45:33","modified_gmt":"2022-08-30T15:45:33","slug":"laravel-4-migrations-class-not-found-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/16\/laravel-4-migrations-class-not-found-collection-of-common-programming-errors-2\/","title":{"rendered":"Laravel 4 migrations &#8211; class not found-Collection of common programming errors"},"content":{"rendered":"<p><strong>This question is now solved &#8211; I used the below:<\/strong><\/p>\n<p>And, problem solved thanks to IRC. I was told to run<\/p>\n<pre><code>php composer.phar dump-autoload\n<\/code><\/pre>\n<p>This fixes the problem for me. It&#8217;s likely related to my strange Composer setup.<\/p>\n<p>I&#8217;ve just started playing with Laravel 4 for a possible future project, having come from Laravel 3. I have started off by creating a new migration, create_blogs_table using artisan:<\/p>\n<pre><code>php artisan migrate:make create_blogs_table --table=blogs --create\n<\/code><\/pre>\n<p>This generated the basic migration file structure which I then filled out a little more:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This question is now solved &#8211; I used the below: And, problem solved thanks to IRC. I was told to run php composer.phar dump-autoload This fixes the problem for me. It&#8217;s likely related to my strange Composer setup. I&#8217;ve just started playing with Laravel 4 for a possible future project, having come from Laravel 3. [&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-6338","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\/6338","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=6338"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6338\/revisions"}],"predecessor-version":[{"id":8832,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6338\/revisions\/8832"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}