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']]);
}