Guest User

Untitled

a guest
Oct 20th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public function up()
  2. {
  3. Schema::create('kontak', function (Blueprint $table) {
  4. $table->increments('id'); //membuat kolom id auto increment
  5. $table->string('nama'); //membuat kolom nama
  6. $table->string('email'); //membuat kolom email
  7. $table->string('nohp'); //membuat kolom no hp
  8. $table->text('alamat'); //membuat kolom alamat dengan tipe text
  9. $table->timestamps(); //membuat kolom created_at dan updated_at sebagai fungsi dasar laravel
  10. });
  11. }
Add Comment
Please, Sign In to add comment