for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xetaravel\Models;
use Eloquence\Behaviours\Sluggable;
class Category extends Model
{
use Sluggable;
/**
* Return the field to slug.
*
* @return string
*/
public function slugStrategy(): string
return 'title';
}
* Get the articles for the category.
public function articles()
return $this->hasMany('Xetaravel\Models\Article');