Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Create_Users_Table {
- /**
- * Make changes to the database.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('users', function ($table)
- {
- $table->increments('id');
- $table->string('username', 128);
- $table->string('password', 64);
- });
- }
- /**
- * Revert the changes to the database.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('users');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment