Is that possible to remove id
column from laravel tables?
Example
In my settings table I really don't need id
column there will be basic columns and data 1 row only
, maximum user will edit them so nothing to add(store).
My question is about model binding
timestamps
we'll add public $timestamps =
false;
should we do the same for id?You can try that in your migration.
Schema::table('table', function (Blueprint $table) {
$table->dropPrimary('id');
$table->integer('id')->unsigned()->change();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With