added reconciliation factory

This commit is contained in:
Denis Duliçi
2021-06-18 10:52:20 +03:00
parent 9ac0bab7ca
commit 4f44414450
4 changed files with 79 additions and 14 deletions

View File

@ -3,9 +3,12 @@
namespace App\Models\Banking;
use App\Abstracts\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Reconciliation extends Model
{
use HasFactory;
protected $table = 'reconciliations';
protected $dates = ['deleted_at', 'started_at', 'ended_at'];
@ -38,4 +41,14 @@ class Reconciliation extends Model
{
return $this->belongsTo('App\Models\Banking\Account');
}
/**
* Create a new factory instance for the model.
*
* @return \Illuminate\Database\Eloquent\Factories\Factory
*/
protected static function newFactory()
{
return \Database\Factories\Reconciliation::new();
}
}