app/Http/Controllers/Admin/AccountTypesController.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 = $this->validate(\request(),
            [
                'name_ar' => 'required',
                'name_en' => 'required',
            ]);
        Account_type::create($data);
        session()->flash('success', trans('messages.added_s'));
        return redirect( route('account_types.index'));
    }
public function store ( Request $ request ) { $ data = $ this -> validate ( \ request ( ) , [ 'name_ar' => 'required' , 'name_en' => 'required' , ] ) ; Account_type :: create ( $ data ) ; session ( ) -> flash ( 'success' , trans ( 'messages.added_s' ) ) ; return redirect ( route ( 'account_types.index' ) ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .