Fakultas Ilmu Komputer UI

Commit b0627deb authored by aabccd021's avatar aabccd021
Browse files

fixed mahasiswa table

parent 2ecf84fb
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RenameMahasiswaToMahasiswas extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::rename('mahasiswa', 'mahasiswas');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::rename('mahasiswas', 'mahasiswa');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSoftDeletesInMahasiswaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('mahasiswas', function (Blueprint $table) {
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('mahasiswas', function (Blueprint $table) {
$table->dropSoftDeletes();
});
}
}
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<li><a href="{{ route('admin.admins') }}">Admins</a></li> <li><a href="{{ route('admin.admins') }}">Admins</a></li>
<li><a href="{{ route('admin.users') }}">Users</a></li> <li><a href="{{ route('admin.users') }}">Users</a></li>
<li><a href="{{ route('admin.databases') }}">Databases</a></li> <li><a href="{{ route('admin.databases') }}">Databases</a></li>
<li><a href="{{ route('admin.mahasiswas') }}">Databases</a></li> <li><a href="{{ route('admin.mahasiswas') }}">Mahasiswas</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment