app/Http/Controllers/Admin/TitlePriceController.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)
    {
        $title = $request->input('title');
        $sub_title = $request->input('sub_title');
        TitlePrice::create([
            'tp_title' => $title,
            'tp_sub_title' => $sub_title,
        ]);
        return redirect()->to('adminpages/pricetitle');
    }
public function store ( Request $ request ) { $ title = $ request -> input ( 'title' ) ; $ sub_title = $ request -> input ( 'sub_title' ) ; TitlePrice :: create ( [ 'tp_title' => $ title , 'tp_sub_title' => $ sub_title , ] ) ; return redirect ( ) -> to ( 'adminpages/pricetitle' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .