Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function up()
- {
- Schema::create('kontak', function (Blueprint $table) {
- $table->increments('id'); //membuat kolom id auto increment
- $table->string('nama'); //membuat kolom nama
- $table->string('email'); //membuat kolom email
- $table->string('nohp'); //membuat kolom no hp
- $table->text('alamat'); //membuat kolom alamat dengan tipe text
- $table->timestamps(); //membuat kolom created_at dan updated_at sebagai fungsi dasar laravel
- });
- }
Add Comment
Please, Sign In to add comment