Return the freshly created folder

parent 6e5ad0c1
......@@ -20,11 +20,12 @@ class FolderController extends Controller
public function store(CreateFolderRequest $request)
{
$this->folder->create($request->all());
$folder = $this->folder->create($request->all());
return response()->json([
'errors' => false,
'message' => trans('media::folders.folder was created'),
'data' => $folder,
]);
}
}
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