/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tours = Tourism::latest()->get(); return view('admin.tourism.index')->with('tours', $tours); }
@extends('front.frontmaster') @section('content') <?php use App\Tourism; $tours = Tourism::latest()->get(); ?> @foreach($tours as $tour ) <h2>{{$tour->title}}</h2> <p>{!!$tour->details!!}</p> @endforeach @endsection