-
app/Tag.php
Open in GitHubuse Illuminate\Database\Eloquent\Model; class Tag extends Model { public function projectTypeSlugs() { return collect(self::PROJECT_TYPES)->map(function ($name) { return Str::slug($name); })->toArray(); } }
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
public function projectTypeSlugs()
{
return collect(self::PROJECT_TYPES)->map(function ($name) {
return Str::slug($name);
})->toArray();
}
}