Preparing the store method

parent ca2ce99e
......@@ -2,8 +2,10 @@
namespace Modules\Page\Http\Controllers\Api;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Page\Entities\Page;
use Modules\Page\Http\Requests\CreatePageRequest;
use Modules\Page\Repositories\PageRepository;
use Modules\Page\Transformers\PageTransformer;
......@@ -24,6 +26,11 @@ class PageController extends Controller
return PageTransformer::collection($this->page->all());
}
public function store(CreatePageRequest $request)
{
dd($request->all());
}
public function destroy(Page $page)
{
$this->page->destroy($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