davide.cucurnia@vola.it
2024-02-05 2f9a34f716957451b80dc2421e1794a264dba9d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
 
namespace Database\Seeders;
 
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
 
class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        DB::table('mail_templates')->insert([
            'template_id' => 'test_mail_1',
            'filename' => 'test',
            'subject' => 'Test mail vola-mail-tool',
            'from' => 'davide.cucurnia@vola.it'
        ]);
        DB::table('pdf_template_groups')->insert([
            'fk_mail_template' => 1,
            'group_name' => 'DEFAULT',
            'filename' => 'test_pdf_def',
            'attachment_name' => 'offerta_123.pdf',
            'orientation' => 'landscape'
        ]);
        DB::table('pdf_template_groups')->insert([
            'fk_mail_template' => 1,
            'group_name' => 'test_group',
            'filename' => 'test_pdf',
            'attachment_name' => 'offerta_124.pdf',
            'orientation' => 'portrait'
        ]);
    }
}