I have three models: User: public function projects() { return $this->hasMany('StoredFile', '...
How can I modify the ~~~static::creating~~~ function to avoid "Column not found: 1054 Unknown c...
This is the code of my Eloquent model: protected static function boot() { parent::boot(); s...
DanielOReilly said: You can return the list of files for a project by doing the following. $project...
DanielOReilly said: You can't use return $this->hasMany('File', 'hash', 'user_hash')->count()...
zenry said: why do you want to generate an id? if it's to mask id's in an url you can use something...
The Laravel portal for problem solving, knowledge sharing and community building.
The community