request = $this->getRequestInstance($request); } /** * Execute the job. * * @return Category */ public function handle() { \DB::transaction(function () { $this->category = Category::create($this->request->all()); }); return $this->category; } }