@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
/** * 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'); }