Download the PHP package unicodeveloper/laravel-mentions without Composer
On this page you can find all versions of the php package unicodeveloper/laravel-mentions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download unicodeveloper/laravel-mentions
More information about unicodeveloper/laravel-mentions
Files in unicodeveloper/laravel-mentions
Package laravel-mentions
Short Description Laravel 5 package that provides facebook-like mention functionality
License MIT
Homepage https://github.com/unicodeveloper/laravel-mentions
Informations about the package laravel-mentions
laravel-mentions
This package makes it possible to create text/textarea fields that enable mentioning by using At.js.
The data for the autocomplete is loaded from a route which will load data based on predefined key-value pairs of an alias and a model in the config.
Installation
First, pull in the package through Composer.
And then include these service providers within config/app.php
.
If you need to modify the configuration or the views, you can run:
The package views will now be located in the app/resources/views/vendor/mentions/
directory and the configuration will be located at config/mentions.php
.
Configuration
To make it possible for At.js to load data we need to define key-value pairs that consist of an alias and a corresponding model.
So now with these aliases
configured we could create a new textfield which will send a request to the users
route and search for matching data in the name
column.
You can also add a class name for styling of the text and textareas, that's the last argument. In this example, it is user-form
Example
Install
Via Composer
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Don't forget to follow me on twitter!
Thanks! Prosper Otemuyiwa.
License
The MIT License (MIT). Please see License File for more information.