How to use multiple implements in laravel model

mafortis

How can I have multiple implements in my model?

my current model is like this:

class Post extends Model implements ViewableContract
{
........
}

now i need to add implements Feedable as well.

should i use comma in between or put them in brackets or what?

Inzamam Idrees

Yeah! you can use comma in between the ViewableContract and Feedable like this:

class Post extends Model implements ViewableContract, Feedable
{
.....
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related