예제 #1
0
 function dataAll()
 {
     return $this->table->where('page_id', '=', Request::route('id1'))->whereIn('section_id', Section::where('single', '=', 0)->lists('id'))->with('section')->get();
 }
예제 #2
0
파일: Page.php 프로젝트: mj1618/punto-cms
 function countPosts($name)
 {
     return Post::where('page_id', '=', $this->id)->whereIn('section_id', Section::where('name', '=', $name)->lists('id'))->count();
 }