CristalTeam / php-api-wrapper

:rainbow: Work with APIs like with Laravel Eloquent or Doctrine (no longer a dream)
MIT License
117 stars 32 forks source link

global scope #42

Open galihsetyo opened 1 year ago

galihsetyo commented 1 year ago

Hi, I have a question.

How to use a global scope in the model? I've tried to use it based on the Laravel documentation but it's expecting an array in the second parameter instead of closure as in the Laravel documentation.

I'll appreciate your help