Friday, August 25, 2017

jQuery push multiple values in input tag


Just set value to input store it in some temporary variable, append the value you want to store and set the value of input to this temporary variable eg.

<input id="user" type="text" name="user" class="form-control" />
<input id="user_id" type="hidden" name="user_id" value="" />

var oldValue = $("#user_id").val();
var arr = oldValue === "" ? [] : oldValue.split(',');
arr.push(yardval);
var newValue = arr.join(',');
$("#user_id").val(newValue);
 
 

Monday, August 14, 2017

Tinymce aws s3 upload plugin

Tinymce editor have lots of plugins and it is very useful. Today i have shared one of the useful plugin with you peoples.

Feature of this plugin:
- Upload the file in the tinymce and it will save the file in the aws s3 bucket and return the URL.


Please refer the URL for source code and  implementation : https://github.com/OGPoyraz/tinymce-aws-s3-upload-plugin

Special thanks to !!!

Thursday, August 10, 2017

Laravel - TNTSearch driver with Laravel Scout

Laravel Scout provides a simple, driver-based solution for adding full-text search to your Eloquent models. i have recommend using Laravel Scout for querying large databases, this will be where it will be at it’s most useful and powerful.

For More Refer : https://laravel-news.com/tntsearch-with-laravel-scout