I'm trying to initizalize a couple of helper classes into my laravel controller only problem is I have 3 things to initialize but only one constructor message for exmaple:
<?php
use UG\Validation\Forms\Login as LoginForm;
class SessionsController extends \BaseController {
protected $loginForm;
public function __construct(LoginForm $loginForm)
{
$this->loginForm = $loginForm;
}
That is to help validate the forms but now I also want to add a repository to help me with keeping eloquent out of my controller
<?php
use UG\Repositories\User as User;
class SessionsController extends \BaseController {
protected $user;
public function __construct(User $user)
{
$this->user = $user;
}
now the problem Im facing is that both these methods need to go in my controller but I only have one _construct method. So how would I go about this