%PDF- %PDF-
Direktori : /home/ugotscom/3vfm3/app/Http/Controllers/ |
Current File : /home/ugotscom/3vfm3/app/Http/Controllers/BookingController.php |
<?php namespace App\Http\Controllers; use App\Booking; use Illuminate\Http\Request; class BookingController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $data=Booking::select('*')->latest('created_at')->paginate(20); return response()->json($data); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // $booking = new Booking; $booking->package=$request->package; $booking->name=$request->name; $booking->email=$request->email; $booking->phone=$request->phone; $booking->message=$request->message; $booking->save(); } /** * Display the specified resource. * * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function show(Booking $booking) { // } /** * Show the form for editing the specified resource. * * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function edit(Booking $booking) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function update(Request $request, Booking $booking) { // } /** * Remove the specified resource from storage. * * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function destroy(Booking $booking) { // } }