Skip to content

Commit

Permalink
Changes to files: Entities/Autoresponder.php
Browse files Browse the repository at this point in the history
Entities/Campaign.php
Entities/Group.php
  • Loading branch information
dedanirungu committed Aug 15, 2023
1 parent 101a62d commit 779860f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Entities/Autoresponder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Autoresponder extends BaseModel
*/
public function fields(Blueprint $table): void
{
$this->fields = $table ?? new Blueprint($this->table);

$this->fields->increments('id')->html('text');
$this->fields->string('subject')->html('text');
$this->fields->string('body')->html('textarea');
Expand Down
2 changes: 2 additions & 0 deletions Entities/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class Campaign extends BaseModel
*/
public function fields(Blueprint $table): void
{
$this->fields = $table ?? new Blueprint($this->table);

$this->fields->increments('id')->html('text');
$this->fields->string('subject')->html('text');
$this->fields->string('body')->html('textarea');
Expand Down
2 changes: 2 additions & 0 deletions Entities/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class Group extends BaseModel
*/
public function fields(Blueprint $table): void
{
$this->fields = $table ?? new Blueprint($this->table);

$this->fields->increments('id')->html('text');
$this->fields->char('name', 255)->html('text');
$this->fields->string('description')->html('textarea');
Expand Down

0 comments on commit 779860f

Please sign in to comment.