vpmalley / jetlag

Bases of a future travel blog platform
MIT License
1 stars 0 forks source link

Integers are returned instead of booleans in the API #44

Closed Vallenain closed 7 years ago

Vallenain commented 8 years ago

For example when calling the articles API, I got this "isDraft":1,"isPublic":0, would it be possible to have true/false instead ?

vpmalley commented 8 years ago

yes it is, I'll do it soon cf. https://laravel.com/docs/5.2/eloquent-mutators#attribute-casting

vpmalley commented 8 years ago

I tried to fix it but I cannot test, let me know if that works

vpmalley commented 7 years ago

it will be fixed during a larger refactoring to remove Business\Article, keeping only Eloquent\Article.