Hi, this query can be injected using this text 'a% ' (remove quotes) $courses = Course::select('id',...
Hi, When using sync() a query like this is generated: update `course_group_course` set `year` = ? wh...
Hi, public function belongsToMany($related, $table = null, $foreignKey = null, $relatedKey = null, $...
Hi, For a model I need to use an email value instead of the user_id value Normaly you would do it li...
Hi, Is it possible to filter the data returned by relationship using values in the parent class Prog...
I am interested in this as well. Any updates? Thank you
Probably in my case is best to use CI to run the query $reports = $this->db->query($sql)->r...
Something like this seems to work, not final though public function otherDistrictCountRelation() {...
The Laravel portal for problem solving, knowledge sharing and community building.
The community