Latest Post

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 | | 16221 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 | | 1188 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 | | 759 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 | | 13922 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 | | 2532 Viewer | Category : Laravel

Paypal Integration LIKE Query Laravel 5.4 - Markdown Mailables Validation refs RAND() Node JS Contact US Form Column Enable Bootstrap maxlength plugin Trigger Zip AngularJS Filter Datepicker Express PHP Gmail Protection CURL clockface plugin Master Database Seeder React JS Carbon Message getQueryLog Email CSS laravel-elixir User split Solve First DATE_SUB Sub-Domain Laravel 5.4 Paypal Payment Gateway QR Code Send Ubuntu 14.04 AngularJS Parsley Application inner join Form Jquery Twitter OAuth json() Trans Helper Mailchimp API Inserted Id ppa Amazon S3 GuzzleHttp SUBSTRING_INDEX() select box search Facebook API Count Configuration php.ini daterangepicker Remove Form Validation Manual Dialog box Captcha code array_change_key_case unicodeveloper/laravel-password refspec file_exists() Record Effect filesize() Where Not In Query Loop Limit Base URL Progress Bar Folder Sendgrid Flash Message Instagram API Vue.JS Package clearInterval() Tag Manager plugin array_map hasColumn Blocked Join Force Update Language Path characters Terminal Confirm Box jquery.lazyload.js Field mod_rewrite Repository Pattern hasTable Delete dompdf Specific roumen/feed package XSS RSS Composer Database SMTP ServiceProvider DB::raw() Remember me Module Laravel 5.2 upload_max_filesize date_format() DATEDIFF() Request bootstrap-progressbar.js Technology Reset Pixel Query Builder DB Statement JWT Clear Automatically AngularJS Directive str_random() Sort FILTER_VALIDATE_URL Site Append Laravel Ionic Month Google Chart Socialite Upgrade Magento 2 Version IP Barcode npm Scratch PHP artisan Subscription Access