app/Http/Controllers/SellerBankController.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([
            'acc_name' => 'required',
            'acc_num' => 'required',
            'currency' => 'required'
        ]);
        SellerBank::create($request->all());
        return redirect()->route('sellerBank.index')
            ->with('success', 'New Seller Bank Created successfully');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'acc_name' => 'required' , 'acc_num' => 'required' , 'currency' => 'required' ] ) ; SellerBank :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'sellerBank.index' ) -> with ( 'success' , 'New Seller Bank Created successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .