Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 316 forks source link

Explorer and Eloquent #334

Closed grosch closed 10 years ago

grosch commented 10 years ago

More of an enhancement request than an issue. As you're painfully aware after our earlier emails :) I'm using Eloquent with Restler. When I use the AWESOME new explorer I get a Model shown like so:

image

None of those variables are actually part of my model, and so I'd rather they not actually be shown.

The ones that are real aren't shown at all, because they're set via the $fillable variable. What's the suggested way to be able to properly document an Eloquent model?

Arul- commented 10 years ago

There is no simple way to solve this, Just create another class the restler way that represents the properties returned by Eloquent model and use that class in the return type and param type where ever needed.