PHP Class Nahid\Talk\Messages\Message

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: nahid/talk Class Usage Examples

Public Properties

Property Type Description
$fillable
$timestamps

Protected Properties

Property Type Description
$table
$touches

Public Methods

Method Description
conversation ( ) * make a relation between conversation model
getHumansTimeAttribute ( ) * make dynamic attribute for human readable time
sender ( ) * its an alias of user relation
user ( ) * make a relation between user model

Method Details

conversation() public method

* make a relation between conversation model
public conversation ( )

getHumansTimeAttribute() public method

* make dynamic attribute for human readable time

sender() public method

* its an alias of user relation
public sender ( )

user() public method

* make a relation between user model
public user ( )

Property Details

$fillable public property

public $fillable

$table protected property

protected $table

$timestamps public property

public $timestamps

$touches protected property

protected $touches