PHP Class Nahid\Talk\Conversations\Conversation

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

Public Methods

Method Description
messages ( ) * make a relation between message
userone ( ) * make a relation between first user from conversation
usertwo ( ) * make a relation between second user from conversation

Method Details

messages() public method

return collection
public messages ( )

userone() public method

return collection
public userone ( )

usertwo() public method

return collection
public usertwo ( )

Property Details

$fillable public property

public $fillable

$table protected property

protected $table

$timestamps public property

public $timestamps