Custom setters and getters in Laravel
问题 Here's a tricky question. I am building a framework in Laravel and I want my objects to interact with Rackspace in a transparent way. From now on I made it possible to upload/delete objects without having in mind Rackspace $model->file = Input::file('thing'); // and it uploads to Rackspace. The next step I want to achieve is to get the route using my config file. The behaviour would be something like $route = $file->source (with source with hello.jpg in the database for instance) and get