Some basic form of registration is done. It does not look very nice, however I was able to create new user. This part will need a lots of other improvements, however new user was created. Yay!
31 lines
827 B
PHP
31 lines
827 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
|
|
class Controller extends BaseController
|
|
{
|
|
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
|
|
|
/**
|
|
* Custom wrapper for generating view.
|
|
*
|
|
* This method will be used for switching among templates.
|
|
*
|
|
* @todo add template support
|
|
*
|
|
* @param null $view
|
|
* @param array $data
|
|
* @param array $mergeData
|
|
*
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
*/
|
|
protected function view($view = null, $data = [], $mergeData = []) {
|
|
return view($view, $data, $mergeData);
|
|
}
|
|
}
|