app/Http/Controllers/Backsite/ConsultationController.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(StoreConsultationRequest $request)
    {
        $data = $request->all();
        $consultation = Consultation::create($data);
        alert()->success('Success Message', 'Successfully added new consultation');
        return redirect()->route('backsite.consultation.index');
    }
public function store ( StoreConsultationRequest $ request ) { $ data = $ request -> all ( ) ; $ consultation = Consultation :: create ( $ data ) ; alert ( ) -> success ( 'Success Message' , 'Successfully added new consultation' ) ; return redirect ( ) -> route ( 'backsite.consultation.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// get all request from frontsite // store to database