コード例 #1
0
 @extends('front.frontmaster')

@section('content')

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


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


 	      @endforeach
 @endsection
コード例 #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $dips = DipVisa::findorFail($id);
     $dips->delete();
     return redirect('admin/diplomacyvisa');
 }