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