Exemplo n.º 1
0
 @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
Exemplo n.º 2
0
 /**
  * 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);
 }