public __construct ( App\Repositories\Task\TaskRepositoryContract $tasks, App\Repositories\User\UserRepositoryContract $users, App\Repositories\Client\ClientRepositoryContract $clients, App\Repositories\Invoice\InvoiceRepositoryContract $invoices, App\Repositories\Setting\SettingRepositoryContract $settings ) | ||
$tasks | App\Repositories\Task\TaskRepositoryContract | |
$users | App\Repositories\User\UserRepositoryContract | |
$clients | App\Repositories\Client\ClientRepositoryContract | |
$invoices | App\Repositories\Invoice\InvoiceRepositoryContract | |
$settings | App\Repositories\Setting\SettingRepositoryContract |
public function __construct(TaskRepositoryContract $tasks, UserRepositoryContract $users, ClientRepositoryContract $clients, InvoiceRepositoryContract $invoices, SettingRepositoryContract $settings)
{
$this->tasks = $tasks;
$this->users = $users;
$this->clients = $clients;
$this->invoices = $invoices;
$this->settings = $settings;
$this->middleware('task.create', ['only' => ['create']]);
$this->middleware('task.update.status', ['only' => ['updateStatus']]);
$this->middleware('task.assigned', ['only' => ['updateAssign', 'updateTime']]);
}