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