kukua / concava-api

API for modifying ConCaVa metadata.
http://kukua.github.io/concava-api/
MIT License
1 stars 0 forks source link

Improve extending base controller methods #17

Open mauvm opened 8 years ago

mauvm commented 8 years ago

Currently we can do this:

function store () {
    $model = $response = parent::store();
    // Modify model
}

However, it's not easy to edit the input data before running the parent's store method. Maybe create a pre/post store hook? Should we use the Eloquent events for this?