app/Http/Controllers/admin/CustomerController.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)
    {
        $data = $request->all();
        $post = CustomerModel::create($data);
        if($post){
            return redirect('admin/customer/index');
        }
    }
public function store ( Request $ request ) { $ data = $ request -> all ( ) ; $ post = CustomerModel :: create ( $ data ) ; if ( $ post ) { return redirect ( 'admin/customer/index' ) ; } }
Store a newly created resource in storage.
Store a newly created resource in storage .
//dd($data); // dd($post);