¨4.0.1¨
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Modules\Translation\Http\Controllers\Admin;
|
||||
|
||||
use Illuminate\Http\Response;
|
||||
use Modules\Translation\Entities\Translation;
|
||||
|
||||
class TranslationController
|
||||
@@ -9,7 +10,7 @@ class TranslationController
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
@@ -18,11 +19,13 @@ class TranslationController
|
||||
return view('translation::admin.translations.index', compact('translations'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param string $key
|
||||
* @return \Illuminate\Http\Response
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function update($key)
|
||||
{
|
||||
@@ -33,6 +36,6 @@ class TranslationController
|
||||
['value' => request('value', '')]
|
||||
);
|
||||
|
||||
return trans('admin::messages.resource_saved', ['resource' => trans('translation::translations.translation')]);
|
||||
return trans('admin::messages.resource_updated', ['resource' => trans('translation::translations.translation')]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user