Files
KevKemChiroDocker/database/migrations/2014_10_12_000000_create_users_table.php
CHIEFSOFT\ameye 346346573f first commit
2024-01-25 13:06:29 -05:00

43 lines
1.2 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('first_name', 250);
$table->string('last_name', 250);
$table->string('email', 250)->unique();
$table->string('avatar', 250);
$table->string('password', 250);
$table->timestamp('email_verified_at')->nullable();
$table->rememberToken();
$table->timestamps();
});
User::create(['first_name' => 'Toner','last_name' => 'Front','email' => 'admin@themesbrand.com','password' => Hash::make('12345678'),'email_verified_at'=>'2022-01-02 17:04:58','avatar' => 'avatar-1.jpg','created_at' => now(),]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
};