Skip to content

Commit

Permalink
feat: add HasBatchTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
Muetze42 committed Sep 30, 2023
1 parent b499096 commit 6378e97
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Traits/Models/HasBatchTrait.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace NormanHuth\HelpersLaravel\Traits\Models;

trait HasBatchTrait
{
/**
* Initialize trait on the model.
*
* @return void
*/
public function initializeCanActiveTrait(): void
{
$this->mergeCasts(['batch' => 'int']);
$this->mergeFillable(['batch']);
}
}

0 comments on commit 6378e97

Please sign in to comment.