Answers for "update column laravel to unqiue laravel migration"

PHP
0

unique laravel migration

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

Schema::table('users', function (Blueprint $table) {
    $table->string('email')->unique();
});
Posted by: Guest on September-02-2021
7

laravel make migration update table

php artisan make:migration add_paid_to_users_table --table=users
Posted by: Guest on July-20-2021

Code answers related to "update column laravel to unqiue laravel migration"

Browse Popular Code Answers by Language