app/Http/Controllers/Admin/appointmentController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(AppointmenteValidator $request)
    {
        $data = $request->all();
        Appointment::create($data);
        return redirect()->route('appointment.index')->with('success', 'Appointment Created Successfully');
    }
public function store ( AppointmenteValidator $ request ) { $ data = $ request -> all ( ) ; Appointment :: create ( $ data ) ; return redirect ( ) -> route ( 'appointment.index' ) -> with ( 'success' , 'Appointment Created Successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .