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