public function store(Create $request)
    {
        $data = $request->all();

        $category = Category::create($data);

        return $this->redirect('categories.index');
    }
public function store(Create $request)
    {
        $data = $request->all();

        $category = Category::create($data);

        return $this->redirect('categories.index');
    }
public function store ( Create $ request ) { $ data = $ request -> all ( ) ; $ category = Category :: create ( $ data ) ; return $ this -> redirect ( 'categories.index' ) ; }
Store a newly created category in storage.

@return Response
Store a newly created category in storage .