Latest Post

How to add LIKE query in Elasticsearch?

I want to use LIKE query as work on sql, i mean If using a SQL or Mysql 'Like' query to query data it will return data even if its only partially matched. if i search just 't' then it will return all the records match 't'. so you can add LIKE statement by using 'query_string'. you can easily implement LIKE statement by using 'query_string', in following example you can see how to impletemt: <pre class="language-php"> $search = 't'; $sql = json_decode(' { "type": "main", "query_cache": true, "body": { "size": 500, "query": { .....

By Hardik Savani | January 26, 2016 | | 922 Viewer | Category : Elasticsearch

PHP Laravel – How to solve “You need to specify a file path to store the seed laravel ” ?

when you install laravel and get the records from database then occur “You need to specify a file path to store the seed laravel” error. that error happened because your php can not loading openssl extension. so, If you are using windows then you should enable openssl extension in following path : <pre> Path : C:\wamp\bin\apache\Apache2.4.4\bin </pre> Find: <pre> ;extension=php_openssl.dll INTO extension=php_openssl.dll </pre> Try this..........

By Hardik Savani | January 25, 2016 | | 624 Viewer | Category : Laravel

Order by using multiple columns and manually array field in Laravel?

If you want to sort multiple columns in Laravel by using orderBy(). Whenever you need to give multiple column in your query then you can use twice time orderBy() and give them. you can give multiple columns in laravel by following example : <strong>Users Table :</strong> <table class="table table-bordered pagin-table"><tbody><tr><th>id</th><th>site_id</th><th>sub_site_id</th><th>name</th><th>email</th></tr><tr><td>1</td><td>4</td><td>7</td><td>john</td><td></td></tr><tr><td>2</td><td>3</td><td>4</td><td>ram</td><td></td></tr><tr><td>3</td><td>4</td><td>2</td><td>ade.....

By Hardik Savani | January 25, 2016 | | 5789 Viewer | Category : Laravel

How to add Delete cascade to existing column in Laravel 5, without remove column?

Whenever you are making table using migration with foreign key. like i give you example as under and you forgot to set delete cascade on table then how can you add delete cascade in existing table. so let's see your migration : <pre class="language-php"> public function up() { Schema::create('locations', function (Blueprint $table) { $table->increments('id'); $table->integer('id_option')->unsigned(); $table->foreign('id_option')->references('id')->on('options'); $table->decimal('lng',11,8); $table->string('streetAddress1'); $table->decimal('lat',11,8); .....

By Hardik Savani | January 24, 2016 | | 1879 Viewer | Category : Laravel

How to Solve overwrite index.php in windows wampserver ?

Many time you have face a problem in windows wampserver or virtualhost of index.php file overwrite. i also fetch that problem like: http://localhost/test/index.php/admin In this url you can see index.php wtite in url, but URL must be without index.php. so if you are using windows wampserver then you can easily solve out this problem by folowing step: <strong>1. Open File : </strong>C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf <strong>2. Find : </strong> #LoadModule rewrite_module modules/ and Then, Just Change, Only remove ‘#’ sign. <pre> #LoadModule rewrite_module mo.....

By Hardik Savani | January 23, 2016 | | 841 Viewer | Category : PHP Wampserver Installation

Control Allow Blocked Sublime text 2 ajaxStart MVC SMTP Laravel 5 AngularJS Backup LIKE Query Linkedin API REST Custom inner join stevebauman/location composer package Mediafıre API Strip Tags Pixel yajra/laravel-datatables-oracle CRUD Google OAuth POST Ajax Namespace Exists Bitbucket Pagination Version Bootstrap maxlength plugin Link Lavacharts Notification clearInterval() filter PHPExcel WHERE Query Loading FILTER_VALIDATE_URL Jquery Dialog Box select box search PHP artisan public_path XML Gmail Apache toArray() User Connection Links mysqld.sock away() Bootstrap Tokenfield Plugin Config AngularJS TrustAsHTML Filter Tag Manager plugin Form Jquery Export word-wrap Collapse Migration Source Code max_file_uploads Image Strings Redirect filter_var Lightbox Directory Website Paging Executed Validation Scratch Dropbox API Stripe Facade Folder Search Particular JSON orderBy Bootstrap show password Plugin Cordova npm Base URL Add nl2br Interface execute query 404 error page Site Application Animate Botdetect Captcha Eloquent-Sluggable Package Remote Phonegap First clipboard.js Modal Data bootstrap-growl Environment Datetimepicker JWT Parsley Global Variable Clear refs basename() tagsinput.js select2.js bplist-parser preg_match Class Switchery JS Date Format KCFinder mod_rewrite File Upload SUBSTRING_INDEX() Ckeditor Xampp Algolia Package Module Query Nodejs Contact US Form Animation Message Cache Reset laravel-elixir URL chmod Failed colorpicker Example no-captcha Mail Location Confirm Box HTML Percentage Sublime text 3 Node JS Zip Key Trigger