public function __construct() { $this->dataView['blog_name'] = SettingsGeneral::find(1)->site_name; $this->dataView['blog_description'] = SettingsGeneral::find(1)->site_description; }
/** * Run the database seeds. * * @return void */ public function run() { SettingsGeneral::truncate(); SettingsGeneral::create(['site_name' => 'PutNew', 'site_description' => 'You new site', 'timezone_string' => 'UTC-3']); }