<?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'
|
]);
|
}
|
}
|