You know what... I would not do it. Most probably you do not use some variable that is frozen like 'request time' and then save it to every single table... your requests take several milliseconds and also they are dependent on system time on mysql server so you never get the same time even if queries are very close to each other in the code.
Mar 11, 2015
6
Level 1
Eloquent relationships with date field as key
Can we do a hasMany relationship based on a date field?
class Workout extends Eloquent{
...
public function logs(){
return $this->hasMany('Log','date','date');
}
}
Please or to participate in this conversation.