Latest Post

How to redirect page using JQuery?

You can redirect page or url in your js file. when you require to redirect page form jquery thrn you can use window.location.href. window.location.href through you can redirect url using jquery/javascript. So, Let's see following example: <strong>Example:</strong> <pre class="prettyprint lang-js">window.location.href = "";</pre>

By Hardik Savani | March 10, 2016 | | 1333 Viewer | Category : Javascript jQuery

How to add multiple markers in google map

In this post we have to learn hoe to add a multiple location marker in google map. add following code for add multiple location marker. <img width="100%" style="border:2px solid cadetblue" src="/upload/Google map.png"> <strong>Add Google map canvas HTML code</strong> <pre class="prettyprint lang-html"> <div id="map_wrapper"> <div id="map_canvas" class="mapping"></div> </div> </pre> <strong>Add Google map canvas CSS code</strong> <pre class="prettyprint lang-css"> #map_wrapper { height: 400px; } #map_canvas { width: 100%; height: 100%; } </pre> <st.....

By Hardik Savani | March 9, 2016 | | 7150 Viewer | Category : Google Map jQuery HTML

Laravel 5 export to pdf using maatwebsite example

In this post i will show you how to export or download pdf file from database table by maatwebsite. maatwebsite packages throught you can easily generate pdf file. so now i show you simple example of items table data, you can donwload in pdf formate. In following few step you can implement export both function in your project. we have to also need to use dompdf package for pdf generater. let's follow step. <strong class="step">Step 1: Installation</strong> Open your composer.json file and add bellow line in required package. <strong>Laravel 5</strong> <pre>"maatwebsite/excel": "~2.1.0"</pre> <.....

By Hardik Savani | March 9, 2016 | | 39279 Viewer | Category : Laravel

How to use where clause with mysql function in Laravel 5?

When you are working on laravel projects and you need to use mysql function in where clause then you can easily use that using DB::raw() and whereRaw(). In this example you can show how to i use mysql function in where clause. In this example i want to compare with year of created_at field but not whole date, that's whay i use mysql function Year(), this function will return only year from timestamp and compare with given value. I add two example of how to use sql function in where cause. let's See both example. <strong class="example">Example 1:</strong> <pre class="prettyprint lang-sql"> $da.....

By Hardik Savani | March 9, 2016 | | 2789 Viewer | Category : Laravel MySql

How to get latitude longitude from mysql in laravel 5?

Whenever you need to get nearest posts from lat and long and if you are working on laravel query builder. then you can get distance easily using DB::raw(), so you can learn from following example how to get nearest value from mysql laravel. <strong>Example:</strong> <pre class="prettyprint lang-php"> $lat = 1; $lon = 1; DB::table("posts") ->select("" ,DB::raw("6371 * acos(cos(radians(" . $lat . ")) * cos(radians( * cos(radians(posts.lon) - radians(" . $lon . ")) + sin(radians(" .$lat. ")) * sin(radians( AS distance")) ->groupBy("") ->ge.....

By Hardik Savani | March 8, 2016 | | 4611 Viewer | Category : Laravel MySql

Behance API mac Sendgrid Parsleyjs PHP mCustomScrollbar Plugin Import RSS Node JS SMTP Top is_null Sql Chart Mysql Concat Database Seeder Datetimepicker glob Mailchimp API Sublime text 2 Library Undefined Notification DATEDIFF() SEO Repo SweetAlert Plugin response() gravatar Laravel 5 Download Google API encrypter Strings setInterval() mysqld.sock guzzle http client Google Map throttle Auth Special Algolia Package Column WHERE Query Packages Send Codeigniter Multiple Foreach slice() Variable orderBy Custom Ajax Carbon Pagination Facade Fetch Div yajra/laravel-datatables-oracle Redis Version Grayscale Image Effect Technology Each Inserted Id Manual tagsinput.js Allow Local Dropbox API FILTER_VALIDATE_URL uppercase word-wrap ngclipboard.js meta http-equiv tag Field characters Where In Query Highchart Paytm away() xoxco tags input Log Activity Setup Folder MySQL Subquery Codeigniter 3 URL Service Provider Contact US Form Form Validation bplist-parser Log Fullcalendar JS ppa Socialite Flash Message Localization oauth Mail Chosen JS Laravel Convert Request Typeahead JS Application intervention/image Numeric Reset SUM() Ubuntu 14.04 milon/barcode CASE_LOWER Nodejs Base URL marker User Agent Hard Modular Exists Vue.JS str_random() virtual host Linux Laravel 4 Elasticsearch DATE_SUB Tutorial Attr Laravel 5.3 FadeOut Index npm bootstrap-growl Mailgun API Google OAuth Laravel 5.4 - Markdown Mailables Autocomplete Laravel Cashier toSql nl2br Parameters jquery.lazyload.js Middleware php.ini daterangepicker getQueryLog Parsley