Fix envío reset password con notificación directa
This commit is contained in:
@@ -19,7 +19,7 @@ return new class extends Migration
|
||||
$table->string('telefono',20)->nullable()->unique();
|
||||
$table->string('direccion')->nullable();
|
||||
$table->string('password');
|
||||
$table->string('code')->nullable();
|
||||
$table->string('code')->default(0);
|
||||
$table->boolean('status');
|
||||
$table->rememberToken();
|
||||
$table->foreignId('current_team_id')->nullable();
|
||||
|
||||
@@ -6,19 +6,21 @@ use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('horarios', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->string('dia');
|
||||
$table->time('entrada')->nullable();
|
||||
$table->time('comidas')->nullable();
|
||||
$table->time('comidar')->nullable();
|
||||
$table->time('salida')->nullable();
|
||||
$table->boolean('status');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('horarios');
|
||||
|
||||
@@ -121,5 +121,10 @@ class RoleSeeder extends Seeder
|
||||
Permission::create(['name'=>'mail.edit','description'=>'Editar mail'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'mail.destroy','description'=>'Eliminar mail'])->syncRoles([$role1]);
|
||||
|
||||
Permission::create(['name'=>'horario.index','description'=>'Ver horario'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'horario.create','description'=>'Crear horario'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'horario.edit','description'=>'Editar horario'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'horario.destroy','description'=>'Eliminar horario'])->syncRoles([$role1]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,27 +13,27 @@ class UserSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$user1= User::create([
|
||||
'name'=>'Luis Fernando Pérez',
|
||||
'email'=>'fernandoestrp@outlook.es',
|
||||
'direccion'=>'Zacatenco mz 21 lt 2 san francisco cuautliquixca',
|
||||
'telefono'=>'5636287759',
|
||||
'password' => bcrypt('6686'),
|
||||
'code'=>1,
|
||||
'status'=>1
|
||||
])->assignRole('Admin');
|
||||
// $user1= User::create([
|
||||
// 'name'=>'Luis Fernando Pérez',
|
||||
// 'email'=>'fernandoestrp@outlook.es',
|
||||
// 'direccion'=>'Zacatenco mz 21 lt 2 san francisco cuautliquixca',
|
||||
// 'telefono'=>'5636287759',
|
||||
// 'password' => bcrypt('6686'),
|
||||
// 'code'=>1,
|
||||
// 'status'=>1
|
||||
// ])->assignRole('Admin');
|
||||
|
||||
$user1->plantelUsuarios()->sync(1);
|
||||
// $user1->plantelUsuarios()->sync(1);
|
||||
|
||||
$user2= User::create([
|
||||
'name'=>'Antonio Azulito Real Luna',
|
||||
'email'=>'reydelfin@gmail.com',
|
||||
'direccion'=>'Zacatenco mz 21 lt 2 san francisco cuautliquixca',
|
||||
'telefono'=>'5636287758',
|
||||
'password' => bcrypt('2000'),
|
||||
'password' => bcrypt('6686'),
|
||||
'code'=>1,
|
||||
'status'=>1
|
||||
])->assignRole('Promotor');
|
||||
])->assignRole('Admin');
|
||||
$user2->plantelUsuarios()->sync([1,2,3]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user