How to migrate laravel in ubuntu xampp server


Posted on 30 Jan 15 by Vickey

I have ubuntu on my computer and i used laravel migrate on my system by doing these processes

1.Go to laravel project folder in terminal window by this command

cd /opt/lampp/htdocs/laravelapp

Install migrate by this command

php artisan migrate:install

Now create new migration

artisan migrate:make createuserstable --create=users

it will create new file for migration you can add new columns in this file like this

Schema::create('users', function(Blueprint $table) { 

     $table->increments('id'); $table->string('name', 32);
     $table->string('username', 32); 
     $table->string('email', 320); 
    $table->string('password', 64); $table->timestamps();


and now run this command

php artisan migrate


If this post help you reduce time to develop, you can help me to maintain this website :)