2018-10-23 18:47:55 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Wizard;
|
|
|
|
|
|
|
|
use Illuminate\Routing\Controller;
|
2018-10-24 18:30:37 +03:00
|
|
|
use App\Traits\Modules;
|
|
|
|
use App\Models\Module\Module;
|
2018-10-23 18:47:55 +03:00
|
|
|
|
|
|
|
class Finish extends Controller
|
|
|
|
{
|
2018-10-24 18:30:37 +03:00
|
|
|
use Modules;
|
|
|
|
|
2018-10-23 18:47:55 +03:00
|
|
|
/**
|
|
|
|
* Show the form for creating a new resource.
|
|
|
|
*
|
|
|
|
* @return Response
|
|
|
|
*/
|
2018-10-24 12:07:28 +03:00
|
|
|
public function index()
|
2018-10-23 18:47:55 +03:00
|
|
|
{
|
2018-10-24 12:24:20 +03:00
|
|
|
setting()->set('general.wizard', true);
|
2018-10-23 18:47:55 +03:00
|
|
|
|
2018-10-24 12:24:20 +03:00
|
|
|
// Save all settings
|
|
|
|
setting()->save();
|
2018-10-23 18:47:55 +03:00
|
|
|
|
2018-10-24 18:30:37 +03:00
|
|
|
$data = [
|
|
|
|
'query' => [
|
|
|
|
'limit' => 4
|
|
|
|
]
|
|
|
|
];
|
|
|
|
|
|
|
|
$modules = $this->getFeaturedModules($data);
|
|
|
|
|
|
|
|
return view('wizard.finish.index', compact('modules'));
|
2018-10-23 18:47:55 +03:00
|
|
|
}
|
|
|
|
}
|