Okay
  Public Ticket #1213852
php artisan migrate
Closed

Comments

  •  1
    auditionware started the conversation

    When I run the command, "php artisan migrate", I get the following error messge. How do I fix this?

    $ php artisan migrate
    PHP Fatal error:  Cannot declare class CreateBooksTable, because the name is already in use in C:\xampp\htdocs\natsauditions\database\migrations\2017_06_21_0553
    09_create_books_table.php on line 34

      [Symfony\Component\Debug\Exception\FatalErrorException]
      Cannot declare class CreateBooksTable, because the name is already in use

  •  32
    seenu replied

    that means, you have created books CRUD twice

    go to database/migrations and keep only one CRUD related to books and remove all others.

    thanks.