1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-06 03:02:34 +01:00
invoiceninja/app/Http/Controllers/CompanyController.php

114 lines
2.2 KiB
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers;
2018-10-24 05:50:15 +02:00
use App\Http\Requests\Company\CreateCompanyRequest;
use App\Http\Requests\SignupRequest;
2018-10-24 05:50:15 +02:00
use App\Jobs\Company\CreateCompany;
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
{
use DispatchesJobs;
2019-01-27 00:22:57 +01:00
/**
* CompanyController constructor.
*/
public function __construct()
{
2019-03-28 22:34:58 +01:00
parent::__construct();
}
/**
* 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');
}
/**
* 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-24 05:50:15 +02:00
CreateCompany::dispatchNow($request);
//todo redirect to localization setup workflow
return redirect()->route('dashboard.index');
}
/**
* 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)
{
//
}
}