How to migrate laravel in ubuntu xampp server

Laravel

Posted on 30 Jan 15 by Vickey
  1207



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

Done


If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com