app/Http/Controllers/Admin/CategoryController.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();
        $this->category->create($data);
        return response()->json([
            'status' => 'data created'
        ], 200);
    }
public function store ( Request $ request ) { $ data = $ request -> all ( ) ; $ this -> category -> create ( $ data ) ; return response ( ) -> json ( [ 'status' => 'data created' ] , 200 ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .