fix(menu): rename 'Staff' to 'Usuarios' in menu seeder and migration
This commit is contained in:
parent
1e7a9b6876
commit
ac44e82454
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
private const MENU_CODE = 'adminapp.staff';
|
||||
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('menues')
|
||||
->where('code', self::MENU_CODE)
|
||||
->update([
|
||||
'label' => 'Usuarios',
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('menues')
|
||||
->where('code', self::MENU_CODE)
|
||||
->update([
|
||||
'label' => 'Staff',
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
|
@ -74,7 +74,7 @@ class MenuSeeder extends Seeder
|
|||
],
|
||||
[
|
||||
'code' => 'adminapp.staff',
|
||||
'label' => 'Staff',
|
||||
'label' => 'Usuarios',
|
||||
'parent_menu_code' => 'main.adminapp',
|
||||
'route' => '/admin/staff',
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue