andersao / andersao/l5-repository

How to load method CustomRepositoryEloquent of other CustomRepositoryEloquent?

オープン
#224 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
4.2k
フォーク
880
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,
I have one doubth, how to load one method (...RepositoryEloquent) of other CustomerRepositoryEloquent

Example:

```
find(config('company.tax'));
$get_irpf = $tax->value*($amount/100);
return $get_irpf;
}

public function boot()
{
$this->pushCriteria(app(RequestCriteria::class));
}
}

```

Now, how to load the method getTaxOfAmount in my other CustomRepositoryEloquent ?

```
pushCriteria(app(RequestCriteria::class));
}
}

```

Thanks.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。