Commit d0939915 by Aan Choesni Herlingga

setting auto translate

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