App store install purchase app

This commit is contained in:
Cüneyt Şentürk
2019-11-20 17:11:35 +03:00
parent 8d50c8cedb
commit 771d73f0d1
7 changed files with 143 additions and 21 deletions

View File

@ -78,31 +78,34 @@ class Item extends Controller
*/
public function steps(Request $request)
{
$json = [];
$json['step'] = [];
$steps = [];
$name = $request['name'];
$version = $request['version'];
// Download
$json['step'][] = [
$steps[] = [
'text' => trans('modules.installation.download', ['module' => $name]),
'url' => url('apps/download')
];
// Unzip
$json['step'][] = [
$steps[] = [
'text' => trans('modules.installation.unzip', ['module' => $name]),
'url' => url('apps/unzip')
];
// Download
$json['step'][] = [
$steps[] = [
'text' => trans('modules.installation.install', ['module' => $name]),
'url' => url('apps/install')
];
return response()->json($json);
return response()->json([
'success' => true,
'error' => false,
'data' => $steps,
'message' => null
]);
}
/**