public function createArticle(Request $request) { $data = $request->json(); BlogService::CreateArticle($data->get('title'), $data->get('content')); }
/** * Run the database seeds. * * @return void */ public function run() { $title = 'Hello, World!'; $content = '## Hello again, world!'; BlogService::CreateArticle($title, $content); }