Пример #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $poas = PowerofAttorney::findorFail($id);
     $poas->delete();
     return redirect('admin/powerofattorney');
 }
Пример #2
0
 @extends('front.frontmaster')

@section('content')

<?php 
use App\PowerofAttorney;
$poas = PowerofAttorney::latest()->get();
?>


 @foreach($poas as $poa )
<h2>{{$poa->title}}</h2>
<p>{!!$poa->details!!}</p>


 	      @endforeach
 @endsection