mysql - Create table in database with php framework Laravel 4 -


I'm new to Laravel 4

I have developed a php web application with Laravel 4

I have the following question: It is possible to create tables in the database without running the terminal to run the following commands:

  php artisan migration: create_users_table create   

and

  php artisan migrate    

Migration to divide your database into different changes Very convenient way, so you can - or easily migrate to the other - current DB scheme of your team. When using Artisan Migrate: Refresh - Bead , you can also sew the database with default data, which creates an air to reset your DB content.

This is also useful for very unit tests.

Of course you can make your code through the DB :: statement ('table table_name') but I recommend you go to migrate Route for Artisan Migrate: Instead of creating them all, you can also create a file to create your initial table.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -