app/Http/Controllers/BookMovieController.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(Request $request)
    {
        $request->validate([
            'addmovie_id' => 'required',
            'customer_id' => 'required',
            'TotalPerson' => 'required',
        ]);
        $array = [
            'addmovie_id' => $request->addmovie_id,
            'customer_id' => $request->customer_id,
            'TotalPerson' => $request->TotalPerson,
        ];
        $this->AddBookTicketInterface->AddData($array);
        return redirect('/ticketDetail');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'addmovie_id' => 'required' , 'customer_id' => 'required' , 'TotalPerson' => 'required' , ] ) ; $ array = [ 'addmovie_id' => $ request -> addmovie_id , 'customer_id' => $ request -> customer_id , 'TotalPerson' => $ request -> TotalPerson , ] ; $ this -> AddBookTicketInterface -> AddData ( $ array ) ; return redirect ( '/ticketDetail' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .