Latest Post

How to remove null values from array in PHP?

you have array with null value and you want to remove all null value from that array without loop. you can remove your all null value from array without loop. PHP array_filter function through you can remove all null value, you see following example how to remove null value : <strong>Example:</strong> <pre class="language-php"> $example = array(100, "hardik", null, "hey", NULL, "", 77); $result = array_filter($example, function($value) { return !is_null($value); }); print_r($result); </pre> <strong>Output:</strong> <pre>Array ( [0] => 100 [1] => hardik [3] => hey [5.....

By Hardik Savani | January 28, 2016 | | 3977 Viewer | Category : PHP

HTML/FORM not found in Laravel 5?

If you want to use Form or Html class and when you will see error like ‘HTML’ class not found OR ‘Form’ class not found. don’t worry about that because Laravel 5 change the package. you should download the HTML and FORM class helper from given instruction above. Add given bellow text to your composer.json file. <pre>"require": { "laravel/framework": "5.0.*", "laravelcollective/html": "~5.0" },</pre> <strong>OR</strong> <pre>composer require laravelcollective/html</pre> after fire composer update command After Update composer, open config/app.php and add this line to the ‘providers.....

By Hardik Savani | January 27, 2016 | | 35021 Viewer | Category : Laravel

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 | | 3029 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 | | 1216 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 | | 35665 Viewer | Category : Laravel

toastr js Clear Bitbucket URL length Query Builder Barcode Pixel Laravel Passport Executed Schema AngularJS Directive toSql Modal GuzzleHttp Sendgrid Request phpmyadmin Google API MassAssignmentException Append Laravel Factory Special Local Mailchimp API Import Run Project gulp Thumbnails MySql Links Paypal Integration Message File Amazon S3 ngclipboard.js Paypal Payment Gateway Database Opencart Google Chart HTML encrypter Magento 2 php.ini CASE_LOWER Tooltip 404 error page Permission thomaswelton/laravel-gravatar DB Statement GET Ajax Failed Email Controller Ip Address POST Ajax Remember me Record lowercase Ionic framework intervention/image Installation Typeahead JS Select Query WHERE Query setTimeout() 500 error page datatables Strip Tags Effect read more Ionic LIKE Query Class Kyslik/column-sortable package Server CRUD helper Mailgun API Blocked Laravel Eloquent Send Draggable Directory Fullcalendar JS Jquery UI orderBy array_combine Object Setup Segment jquery.lazyload.js Array MVC Bootstrap Tokenfield Plugin league/flysystem-dropbox PHP artisan sven/artisan-view package no-captcha tagsinput.js Data Toggle Number Form Jquery voyager package Attribute Bootstrap Confirmation js plugin Jquery Modal str_replace Parsley Folder Twitter API Upgrade Database Seeder Cache Bootbox.js roumen/sitemap is_null ANDROID_HOME Tracking daterangepicker setInterval() Mysql Concat Example Laravel 5.3 HTML to PDF Snippet Zip Paytm Parsleyjs Force PostgreSQL Fetch word-wrap Captcha code Algolia Package Client side validation Empty Key Pagination Jquery Plugin Loop Backup inner join Custom Command Switchery JS mysqld.sock hasColumn Interfaces Billing