@surya454 you can add images using the standard img tag (first upload the image to a service like http://imgur.com
From the sounds of things, either you changed your file name or, most likely is that you need to run
composer dump-autoload -o
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have installed Laravel 5 in Xampp Windows OS. I am getting CreateArticlesTable not found while roll back migration. Attached is the migrate screenshot details (No option in forum to add screenshots). Could you please help to fix the issue. Created Controller using php artisan make:controller ArticlesController.
@surya454 you can add images using the standard img tag (first upload the image to a service like http://imgur.com
From the sounds of things, either you changed your file name or, most likely is that you need to run
composer dump-autoload -o
@mstnorris : Thank you instructions to upload images. Image path : http://imgur.com/a/3k94F . Let me know If you need more details
@surya454 something similar happened to me too. I don't remember exactly what caused this, but the only way out was to DROP every table from the database and recreate everything from scratch: php artisan migrate:install, php artisan migrate.
ps. Also if you are rolling migrations back only to rerun them again, there's php artisan migrate:refresh command that does exactly that.
@surya454 did you try composer dump-autoload -o ?
What happens when you manually delete all the tables (if you are able to do so, i.e. you're still developing and you're not losing production data). And then you run php artisan migrate, what happens then?
@mstnorris : I tried following steps and still same error:
@constb : Still same error. I even tried with fresh Laravel install and getting same error
class CreateArticlesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('articles', function(Blueprint $table)
{
$table->increments('id');
$table->string('text');
$table->text('body');
$table->timestamps();
$table->timestamp('published_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('articles');
}
}
@surya454 Try php artisan clear-compiled
c:\xamppsurya\htdocs\laraveltest5>php artisan clear-compiled
c:\xamppsurya\htdocs\laraveltest5>php artisan migrate Migration table created successfully. Migrated: 2014_1012000000_create_users_table Migrated: 2014_1012_100000create_password_resets_table Migrated: 20150409_103922_create_articles_table
c:\xamppsurya\htdocs\laraveltest5>php artisan migrate:rollback
[Symfony\Component\Debug\Exception\FatalErrorException] Class 'CreateArticlesTable' not found
Log File: [2015-04-10 15:56:46] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'CreateArticlesTable' not found' in C:\xamppsurya\htdocs\laraveltest5\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:301 Stack trace: #0 {main}
@surya454 your filename is different - this is what it is expecting
20150409_103922_create_articles_table
yet, in the screenshot you posted, the filename is different. Why is this? You have changed it.
@surya454 if that helped please accept the answer
Thank you all. It is nothing to do Laravel . Looks like my composer file is corrupted.
@surya454 by the looks of your first screen shot, I don't think your composer file was corrupted.
Hi, same problem here, solved with "composer update"
I am having the same error. I tried the auto dump, the composer update, no avail... https://www.dropbox.com/s/5ku3kjnwpkfxn6t/Screenshot%202015-09-28%2021.07.28.png?dl=0
I found the error resource. A very simple mistake. I had modified the migration file afterwards. I saved it. I did not run any migration, but then when I came back to rollback, I had forgotten that I added nullable functions for some columns that were not migrated originally.
Thank you composer
I have the same problem with the exception
'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'CreateArticlesTable' not found' in
but now I have solved it by: 1-> go to 'migration table' in the database (mysql database in phpMyAdmin). 2-> delete the record of 'Article' column: if the error message is 'CreateArticlesTable', the record to delete must be ' create_article_table' in the 'migration table'
Deleting create_article_table record in the migrations table solved my problem. The prev post by @misterk should be accepted answer.
If all things failed
Delete the migration file after copying the contents of it
the re make the migration with the same name
paste the contents inside
that solved my problem
Hi there i am having an issue
While i am running CMD : php artisan migrate
Please or to participate in this conversation.