2018-10-22 14:04:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2018-10-24 05:50:15 +02:00
|
|
|
use App\Http\Requests\Company\CreateCompanyRequest;
|
2018-10-22 14:04:37 +02:00
|
|
|
use App\Http\Requests\SignupRequest;
|
2018-10-24 05:50:15 +02:00
|
|
|
use App\Jobs\Company\CreateCompany;
|
2018-10-22 14:04:37 +02:00
|
|
|
use App\Jobs\RegisterNewAccount;
|
|
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
|
2019-01-27 00:22:57 +01:00
|
|
|
/**
|
|
|
|
* Class CompanyController
|
|
|
|
* @package App\Http\Controllers
|
|
|
|
*/
|
2019-03-28 22:34:58 +01:00
|
|
|
class CompanyController extends BaseController
|
2018-10-22 14:04:37 +02:00
|
|
|
{
|
|
|
|
use DispatchesJobs;
|
|
|
|
|
2019-01-27 00:22:57 +01:00
|
|
|
/**
|
|
|
|
* CompanyController constructor.
|
|
|
|
*/
|
2018-10-22 14:04:37 +02:00
|
|
|
public function __construct()
|
|
|
|
{
|
2019-03-28 22:34:58 +01:00
|
|
|
|
|
|
|
parent::__construct();
|
|
|
|
|
2018-10-22 14:04:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display a listing of the resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2019-04-03 02:09:22 +02:00
|
|
|
// return view('signup.index');
|
2018-10-22 14:04:37 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for creating a new resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function create()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Store a newly created resource in storage.
|
|
|
|
*
|
|
|
|
* @param \App\Http\Requests\SignupRequest $request
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2018-10-24 05:50:15 +02:00
|
|
|
public function store(CreateCompanyRequest $request)
|
2018-10-22 14:04:37 +02:00
|
|
|
{
|
|
|
|
|
2018-10-24 05:50:15 +02:00
|
|
|
CreateCompany::dispatchNow($request);
|
2018-10-22 14:04:37 +02:00
|
|
|
|
|
|
|
//todo redirect to localization setup workflow
|
2018-11-02 11:54:46 +01:00
|
|
|
return redirect()->route('dashboard.index');
|
2018-10-22 14:04:37 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display the specified resource.
|
|
|
|
*
|
|
|
|
* @param int $id
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function show($id)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for editing the specified resource.
|
|
|
|
*
|
|
|
|
* @param int $id
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function edit($id)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update the specified resource in storage.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Http\Request $request
|
|
|
|
* @param int $id
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function update(Request $request, $id)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove the specified resource from storage.
|
|
|
|
*
|
|
|
|
* @param int $id
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function destroy($id)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|