for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author: Raimi Ademola <[email protected]>
* @copyright: 2016 Andela
*/
namespace Demo;
use Illuminate\Database\Eloquent\Model;
class Emoji extends Model
{
protected $fillable = ['name', 'chars', 'category', 'created_at', 'created_by', 'updated_at'];
* Get emoji creator.
public function created_by()
return $this->hasOne('Demo\User', 'username', 'created_by');
}
* Get emoji keywords.
public function keywords()
return $this->hasMany('Demo\Keyword');