Ejemplo n.º 1
0
 @extends('front.frontmaster')

@section('content')

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


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


 	      @endforeach
 @endsection
Ejemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $orgs = OrgStruc::findorFail($id);
     $orgs->delete();
     return redirect('admin/orgstruc');
 }