コード例 #1
0
ファイル: TagController.php プロジェクト: abhatia2107/cat
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $tags = Tag::latest()->get();
     return view('tag.index', compact('tags'));
 }
コード例 #2
0
ファイル: TagsController.php プロジェクト: realnerdo/blog
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $tags = Tag::latest()->paginate(20);
     return view('tags.index', compact('tags'));
 }
コード例 #3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $num_per_page = env('num_per_page_admin');
     $tags = Tag::latest()->paginate($num_per_page);
     return view('admin.tags.index', compact('tags'));
 }
コード例 #4
0
ファイル: AdvertsController.php プロジェクト: Zlyy/adceg
 private function searchByTags($searchTerms)
 {
     foreach ($searchTerms as $term) {
         $query = Tag::latest()->where('name', 'LIKE', '%' . $term . '%');
     }
     return $query->get();
 }
コード例 #5
0
ファイル: Tag.php プロジェクト: no-global-state/Mabbit
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('tags.grid', ['tags' => TagModel::latest('id')->get()]);
 }
コード例 #6
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $models = Tag::latest()->paginate(10);
     return view('admin.tag.index', compact('models'));
 }
コード例 #7
0
ファイル: TagsController.php プロジェクト: Zlyy/adceg
 public function adminTags(EditTag $request)
 {
     $tags = \App\Tag::latest()->get();
     return view('admin.tags', compact('tags'));
 }