Commit d0939915 by Aan Choesni Herlingga

setting auto translate

parent 02068910
......@@ -69,8 +69,10 @@ class InformationController extends Controller
$save = $this->repo->store($data);
// save translate
$this->createEn($data, $save);
if (webprofilesetting()['auto_translate'] == 1) {
// save translate
$this->createEn($data, $save);
}
return redirect()->route('informations.index');
}
......
......@@ -67,8 +67,10 @@ class PageController extends Controller
$save = $this->repo->store($data);
// save translate
$this->createEn($data, $save);
if (webprofilesetting()['auto_translate'] == 1) {
// save translate
$this->createEn($data, $save);
}
return redirect()->route('pages.index');
}
......
......@@ -70,9 +70,11 @@ class PostController extends Controller
$save = $this->repo->store($data);
// save translate
$this->createEn($data, $save);
if (webprofilesetting()['auto_translate'] == 1) {
// save translate
$this->createEn($data, $save);
}
return redirect()->route('posts.index');
}
......
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