2017 © Pedro Peláez
 

library larvel-mention

a laravel user mentioned package

image

dongm2ez/larvel-mention

a laravel user mentioned package

  • Wednesday, July 26, 2017
  • by dongm2ez
  • Repository
  • 1 Watchers
  • 12 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 135 % Grown

The README.md

Laravel Mention

:heart: This package helps you complete @ function, (*1)

Latest Stable Version Latest Unstable Version Total Downloads License , (*2)

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:, (*3)

php 'providers' => [ // Other service providers... Dongm2ez\Mention\MentionServiceProvider::class, ],, (*4)

As optional if you want to modify the default configuration, you can publish the configuration file:, (*5)

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

```php <?php, (*6)

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

    // 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',

];, (*8)

```, (*9)

Usage


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

License

MIT, (*10)

The Versions

26/07 2017

dev-master

9999999-dev

a laravel user mentioned package

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Avatar dongm2ez

26/07 2017

1.0.1

1.0.1.0

a laravel user mentioned package

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Avatar dongm2ez

25/07 2017

1.0.0

1.0.0.0

a laravel user mentioned package

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Avatar dongm2ez