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