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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -