On November 17, 2020 . By CodimTh Category: Web Laravel Example how to access model hasMany Relation with where condition in Laravel public function videos() { return $this->hasMany('Video')->where('available','=', 1); } Tags : Laravel Laravel tutoriel Tips Laravel Previous PostForeign key constraint fails - how to delete safely related entities in LaravelNext PostUnderstanding transitions and animations in Vue.js Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments