Biasa ler buat silap. Mana ada orang tak buat silap? 😛
Setiap kali buat perubahan pada table run command berikut
php artisan make:migration rename_nama_table_silap
Edit file migration dalam database/migrations/
use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class RenameCourierTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::rename('courier', 'couriers'); } /** * Reverse the migrations. * * @return void */ public function down() { // Schema::rename('couriers', 'courier'); } }