Akaunting/app/Http/Controllers/Wizard/Finish.php

29 lines
552 B
PHP
Raw Normal View History

2018-10-23 15:47:55 +00:00
<?php
namespace App\Http\Controllers\Wizard;
use Illuminate\Routing\Controller;
use App\Models\Common\Company;
class Finish extends Controller
{
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function index()
2018-10-23 15:47:55 +00:00
{
if (setting(setting('general.wizard', false))) {
return redirect('/');
2018-10-23 15:47:55 +00:00
}
setting()->set('general.wizard', true);
2018-10-23 15:47:55 +00:00
// Save all settings
setting()->save();
2018-10-23 15:47:55 +00:00
return view('wizard.finish.index', compact(''));
2018-10-23 15:47:55 +00:00
}
}