Fill method to create pages

parent 0bacd523
...@@ -28,7 +28,12 @@ class PageController extends Controller ...@@ -28,7 +28,12 @@ class PageController extends Controller
public function store(CreatePageRequest $request) public function store(CreatePageRequest $request)
{ {
dd($request->all()); $this->page->create($request->all());
return response()->json([
'errors' => false,
'message' => trans('page::messages.page created'),
]);
} }
public function destroy(Page $page) public function destroy(Page $page)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment