All Projects → dongm2ez → Laravel Mention

dongm2ez / Laravel Mention

Licence: mit
a laravel user mentioned package

Projects that are alternatives of or similar to Laravel Mention

Laravel Ban
Laravel Ban simplify blocking and banning Eloquent models.
Stars: ✭ 572 (+4666.67%)
Mutual labels:  laravel, package
Sleepingowladmin
🦉 Administrative interface builder for Laravel (Laravel admin)
Stars: ✭ 671 (+5491.67%)
Mutual labels:  laravel, package
Befriended
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
Stars: ✭ 596 (+4866.67%)
Mutual labels:  laravel, package
Comments
Native comments for your Laravel application.
Stars: ✭ 390 (+3150%)
Mutual labels:  laravel, package
Aetherupload Laravel
A Laravel package to upload large files 上传大文件的Laravel扩展包
Stars: ✭ 835 (+6858.33%)
Mutual labels:  laravel, package
Laravel Acl
This package helps you to associate users with permissions and permission groups with laravel framework
Stars: ✭ 404 (+3266.67%)
Mutual labels:  laravel, package
Laravel Translatable
A Laravel package for multilingual models
Stars: ✭ 624 (+5100%)
Mutual labels:  laravel, package
Laravel Multilingual Routes
A package to handle multilingual routes in your Laravel application.
Stars: ✭ 241 (+1908.33%)
Mutual labels:  laravel, package
Package Skeleton
📦 My base for PHP packages.
Stars: ✭ 6 (-50%)
Mutual labels:  laravel, package
Laravel Caffeine
Keeping Your Laravel Forms Awake.
Stars: ✭ 723 (+5925%)
Mutual labels:  laravel, package
Plans
Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countable features.
Stars: ✭ 326 (+2616.67%)
Mutual labels:  laravel, package
Pagarme Laravel
Pagar.me SDK for Laravel applications.
Stars: ✭ 23 (+91.67%)
Mutual labels:  laravel, package
Laravel Transactional Events
Transaction-aware Event Dispatcher for Laravel
Stars: ✭ 263 (+2091.67%)
Mutual labels:  laravel, package
Laravel Cascade Soft Deletes
Cascading deletes for Eloquent models that implement soft deletes
Stars: ✭ 498 (+4050%)
Mutual labels:  laravel, package
Laravel Gitscrum
GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.
Stars: ✭ 2,686 (+22283.33%)
Mutual labels:  laravel, package
Youtube
🔥 Laravel PHP Facade/Wrapper for the Youtube Data API
Stars: ✭ 610 (+4983.33%)
Mutual labels:  laravel, package
Laravel Package Tools
Tools for creating Laravel packages
Stars: ✭ 216 (+1700%)
Mutual labels:  laravel, package
Laravelmetatags
The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
Stars: ✭ 226 (+1783.33%)
Mutual labels:  laravel, package
Artisan View
👀 Manage your views in Laravel projects through artisan
Stars: ✭ 708 (+5800%)
Mutual labels:  laravel, package
Laravel Bootstrap Table List
Bootstrap table list generator for Laravel.
Stars: ✭ 16 (+33.33%)
Mutual labels:  laravel, package

Laravel Mention

❤️ This package helps you complete @ function

Latest Stable Version Latest Unstable Version Total Downloads License

Requirement

  • PHP >= 5.4.0

Installation

$ composer require dongm2ez/larvel-mention

After installing the library, register the Dongm2ez\Mention\MentionServiceProvider in your config/app.php file:

'providers' => [
    // Other service providers...
    Dongm2ez\Mention\MentionServiceProvider::class,
],

As optional if you want to modify the default configuration, you can publish the configuration file:

$ php artisan vendor:publish --provider='Dongm2ez\Mention\MentionServiceProvider' --tag="config"
<?php

return [
   // They contain the model that will be mentioned
   'users' => [
       // Model that will be mentioned
       'model' => 'App\User',

       // The column that will be used to search the model
       'column' => 'name',
   ],

   // Match the front mentioned info
   'regex' => '/(\S*)\@([^\r\n\s]*)/i',

   // laravel route alias
   'route_name' => 'users.show',

   // output format "html", "Markdown"
   'format' => 'html',

];

Usage

$parseText = Mention::parse("@david @Aaron @Judy @麦索 Balabalabala...");

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].