示例#1
0
 public function createImage()
 {
     $name = str_replace(' ', '', $this->getRouteParameter('name', \Zbase\Models\Data\Column::f('string', 'personfirstname')));
     $font = $this->getRouteParameter('font', null);
     $material = $this->getRouteParameter('material', 'material');
     $options = zbase_request_inputs();
     $create = true;
     return $this->view(zbase_view_file_contents('customize.image'), compact('name', 'font', 'create', 'material', 'options'));
 }
示例#2
0
 /**
  * Default Data
  * @param array $defaultData Configuration default data
  * @return array
  */
 public static function tableDefaultData($defaultData = [])
 {
     $defaultData = [['status' => 'ok', 'username' => 'sudox', 'name' => 'Super User', 'email' => 'sudox@' . zbase_domain(), 'email_verified' => 1, 'email_verified_at' => \Zbase\Models\Data\Column::f('timestamp'), 'password' => \Zbase\Models\Data\Column::f('string', 'password'), 'password_updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'created_at' => \Zbase\Models\Data\Column::f('timestamp'), 'updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'alpha_id' => zbase_generate_hash([rand(1, 1000), time(), rand(1, 1000)], 'sudo'), 'deleted_at' => null], ['status' => 'ok', 'username' => 'adminx', 'name' => 'Admin Istrator', 'email' => 'adminx@' . zbase_domain(), 'email_verified' => 1, 'email_verified_at' => \Zbase\Models\Data\Column::f('timestamp'), 'password' => \Zbase\Models\Data\Column::f('string', 'password'), 'password_updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'created_at' => \Zbase\Models\Data\Column::f('timestamp'), 'updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'alpha_id' => zbase_generate_hash([rand(1, 1000), time(), rand(1, 1000)], 'admin'), 'deleted_at' => null], ['status' => 'ok', 'username' => 'systemx', 'name' => 'Mr. System', 'email' => 'systemx@' . zbase_domain(), 'email_verified' => 1, 'email_verified_at' => \Zbase\Models\Data\Column::f('timestamp'), 'password' => zbase_generate_code(), 'password_updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'created_at' => \Zbase\Models\Data\Column::f('timestamp'), 'updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'alpha_id' => zbase_generate_hash([rand(1, 1000), time(), rand(1, 1000)], 'admin'), 'deleted_at' => null], ['status' => 'ok', 'username' => 'userx', 'name' => 'Just User', 'email' => 'userx@' . zbase_domain(), 'email_verified' => 1, 'email_verified_at' => \Zbase\Models\Data\Column::f('timestamp'), 'password' => \Zbase\Models\Data\Column::f('string', 'password'), 'password_updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'created_at' => \Zbase\Models\Data\Column::f('timestamp'), 'updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'alpha_id' => zbase_generate_hash([rand(1, 1000), time(), rand(1, 1000)], 'user'), 'deleted_at' => null], ['status' => 'ok', 'username' => 'moderatorx', 'name' => 'Moody Moderator', 'email' => 'moderator@' . zbase_domain(), 'email_verified' => 1, 'email_verified_at' => \Zbase\Models\Data\Column::f('timestamp'), 'password' => \Zbase\Models\Data\Column::f('string', 'password'), 'password_updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'created_at' => \Zbase\Models\Data\Column::f('timestamp'), 'updated_at' => \Zbase\Models\Data\Column::f('timestamp'), 'alpha_id' => zbase_generate_hash([rand(1, 1000), time(), rand(1, 1000)], 'moderator'), 'deleted_at' => null]];
     return $defaultData;
 }