public function run()
 {
     if (!Schema::hasTable('renatio_dynamicpdf_pdf_layouts')) {
         return false;
     }
     Layout::create(['name' => 'Users PDF layout', 'code' => 'rainlab::user', 'content_html' => File::get(__DIR__ . '/templates/layout.htm'), 'content_css' => File::get(__DIR__ . '/templates/style.css')]);
 }
 public function run()
 {
     if (!Schema::hasTable('renatio_dynamicpdf_pdf_templates')) {
         return false;
     }
     $layout = Layout::where('code', 'rainlab::user')->first();
     Template::create(['title' => 'User profil', 'description' => "User's PDF card template", 'layout' => $layout, 'code' => 'rainlab::user', 'content_html' => File::get(__DIR__ . '/templates/user.htm')]);
 }