Skip to content

Commit

Permalink
Changes to files: Entities/Gateway.php
Browse files Browse the repository at this point in the history
Entities/Payment.php
Entities/Simulate.php
Entities/Stkpush.php
Entities/Webhook.php
  • Loading branch information
dedanirungu committed Aug 15, 2023
1 parent 4cf684e commit 72d7760
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Entities/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class Gateway extends BaseModel
*/
public function fields(Blueprint $table): void
{
$this->fields = $table ?? new Blueprint($this->table);

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

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

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

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

$this->fields->increments('id')->html('text');
$this->fields->string('slug')->html('text');
$this->fields->string('validation_url')->html('text');
Expand Down

0 comments on commit 72d7760

Please sign in to comment.