App\Http\Controllers\TaskController::index PHP Method

index() public method

public index ( ) : Illuminate\Contracts\View\View
return Illuminate\Contracts\View\View
    public function index()
    {
        return View::make('list', ['entityType' => ENTITY_TASK, 'title' => trans('texts.tasks'), 'sortCol' => '2', 'columns' => Utils::trans(['checkbox', 'client', 'date', 'duration', 'description', 'status', ''])]);
    }

Usage Example

 /**
  * Test index.
  */
 public function testIndex()
 {
     $controller = new TaskController();
     $this->response = $controller->index();
     $this->seeJson();
     $this->assertEquals(200, $this->response->status());
 }