feat(Membership, FAQ, Relance): update membership form (member type radio,retzien email field, calendar-year pricing), create FAQ page with accordion, wire renewal reminder notification
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m23s
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m23s
This commit is contained in:
40
database/seeders/MemberTypeSeeder.php
Normal file
40
database/seeders/MemberTypeSeeder.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\MemberType;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class MemberTypeSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$types = [
|
||||
[
|
||||
'identifier' => 'individual',
|
||||
'name' => 'Particulier',
|
||||
'description' => 'Personne physique',
|
||||
],
|
||||
[
|
||||
'identifier' => 'company',
|
||||
'name' => 'Entreprise',
|
||||
'description' => 'Personne morale (société, auto-entrepreneur, etc.)',
|
||||
],
|
||||
[
|
||||
'identifier' => 'association',
|
||||
'name' => 'Association',
|
||||
'description' => 'Association loi 1901',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($types as $type) {
|
||||
MemberType::updateOrCreate(
|
||||
['identifier' => $type['identifier']],
|
||||
[
|
||||
'name' => $type['name'],
|
||||
'description' => $type['description'],
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user