PHPackages                             zeynallow/laravel-hashtags - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zeynallow/laravel-hashtags

ActiveLibrary[Database &amp; ORM](/categories/database)

zeynallow/laravel-hashtags
==========================

Laravel package for hashtag and mention analysis, management and rendering

1.0.4(10mo ago)47MITPHPPHP ^8.1

Since Jun 22Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/zeynallow/laravel-hashtags)[ Packagist](https://packagist.org/packages/zeynallow/laravel-hashtags)[ RSS](/packages/zeynallow-laravel-hashtags/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Hashtags
================

[](#laravel-hashtags)

Laravel package for hashtag and mention analysis, management and rendering. This package is used to extract `#hashtags` and `@mentions` from any text field, store them in the database and convert them to HTML links.

---

🚀 Features
----------

[](#-features)

- ✅ Hashtag and mention extraction (`#Laravel`, `@zeynallow`)
- ✅ Morphable relationship support (`taggables`)
- ✅ Blade helpers and directives
- ✅ Secure HTML rendering
- ✅ Trending hashtags
- ✅ Search functionality
- ✅ Cache support
- ✅ Eloquent scopes
- ✅ Service layer architecture
- ✅ Configuration options

---

📦 Installation
--------------

[](#-installation)

### Add via Composer

[](#add-via-composer)

```
composer require zeynallow/laravel-hashtags
```

### Configuration and migration

[](#configuration-and-migration)

```
# Publish config file
php artisan vendor:publish --tag=laravel-hashtags-config

# Publish migrations
php artisan vendor:publish --tag=laravel-hashtags-migrations

# Run migrations
php artisan migrate
```

---

🧠 Usage
-------

[](#-usage)

### 1. Add Trait to Your Model

[](#1-add-trait-to-your-model)

```
