Skip to content

column status cannot read #22

Open
@andregeges

Description

@andregeges

This is my Presenter

if($this->status == 'pending'){ 
     echo '<span class="label label-teal"><span class="ico-file"></span> PENDING</span>';
}

i can call others column like
$this->id
$this->employee_id

but when i called $this->status it give me an error

ErrorException (E_UNKNOWN) 
Undefined property: RequisitionPresenter::$status 

this is my table

                        $table->increments('id'); 
            $table->integer('employee_id');  
            $table->timestamps();
            $table->integer('created_by');
            $table->integer('updated_by'); 
            $table->string('status')->default('pending');
            $table->datetime('status_at');
            $table->integer('status_by');
            $table->text('status_notes'); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions