title: Mapping field name in model using laravel
body: <p>Is there a way to map field names to a database to a different attribute name in the model? For example, if the database has a field name of <code>customer_id</code> but I wanted to use eloquent in this way <code>Customer::get(['id'])</code> I've tried using the getAttribute method but that is called after eloquent has attempted to get the value.</p>