Skip to content

Commit

Permalink
Merge pull request #41 from Muetze42/development
Browse files Browse the repository at this point in the history
feat: add HasBatchTrait
  • Loading branch information
Muetze42 authored Sep 30, 2023
2 parents 5beee5f + 6378e97 commit 4843926
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 4843926

Please sign in to comment.