It Solution Stuff provide collection of tutorials about PHP, Laravel Framework, Codeigniter Framework, Mysql Database, Bootstrap Front-end Framework, Jquery, Node JS, Ajax Example, APIs, CURL Example, Composer Packages Example, AngularJS etc. You will find best example and article about PHP Language. So you can also search tutorial from bellow search box.

Latest Post

How to add text on image in laravel 5?

if you are use laravel and you want to add text on image or resize, crop image then we can do with "intervention/image" pakacke. you have to just follow few step and you can add text on image. <strong>Step 1 : </strong>you have to add package on your laravel project by using composer like : <pre>composer require intervention/image</pre> <strong>Step 2 :</strong> then you have to add provider path and alias path in config/app.php file like : In $provides : <pre>'Intervention\Image\ImageServiceProvider'</pre> In $aliases : <pre>'Image' => 'Intervention\Image\Facades\Image'</pre> [ADDCODE].....

By Hardik Savani | January 30, 2016 | | 18543 Viewer | Category : Laravel

How to get days difference between two dates in laravel?

Whenever you need to get difference between two dates in date in laravel 5 then you can get easily using Carbon. Laravel by default provide Carbon class. Carbon class throught you can calculate difference between two dates in days. In Following example you can see, we have a two dates, first $to variable and second one $from variable. Carbon class diffInDays function using you can get difference between two dates. I hope you will find your solution. <strong>Example:</strong> <pre class="language-php"> $to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', '2015-5-5 3:30:34'); $from = \Carbon\.....

By Hardik Savani | January 29, 2016 | | 16730 Viewer | Category : Laravel

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 | | 4734 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 | | 37753 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 | | 3619 Viewer | Category : Elasticsearch

clearbit API json() Master select2.js Parsleyjs stevebauman/location composer package CSS Month Dropbox API oauth React JS typed.js plugin Lightbox Vue.JS Login With FB Automatically basename() select box search Where In Query Carbon PHP Facade strpos Failed Laravel Cashier PHPUnit Laravel 5.5 Barcode Database Popup Box Each refs Dialog box refspec setInterval() Dropzone.js roumen/feed package Base URL Number mysqld.sock 404 error page Inserted Id Clear Rewrite length Socialite Backup URL Chart.js sven/artisan-view package Setup ID Attribute Queue Join Pixel Modular Trigger Composer Run Project File Import XSS Tracking gulp Image Tooltip Repository Pattern filter_var Collapse Example word-wrap Elasticsearch response() whitespace tagsinput.js Behance API POST Ajax Progress Bar Cross Percentage PingPong Now Bootstrap Star Rating Plugin Laravel 5.4 ajaxComplete MySql yajra/laravel-datatables-oracle Codeigniter 3 Path Delete Convert RSS dompdf Server Gmail parse Loop lowercase execute query ixudra/curl composer package gravatar WHERE Query array_change_key_case API Notification Remove Ajax Specific Site Admin Panel Where Not In Query Fetch SEO strtolower asgardcms Column toArray() Query Builder Jquery Plugin Authentication Form JS Plugin uppercase HTML Request Scroll Cordova filesize() Enable DATE_SUB Form Validation thujohn/twitter package daterangepicker Linux Subscribe Custom Variable Client side validation CORS Linkedin API JS Components & Slots glob Laravel Resource Send Email Node JS Sitemap PostgreSQL ACL