Latest Post

Laravel after login, redirect back to previous url ?

If you are working on laravel and you want to do like: How to redirect back to previous url, After login. after login user you can redirect his previous page as he was before. you can do this, i would like to give you two example. first example is using intended() and second one is using session but i don't know more but i think intended() is not working proper in laravel 5 but you can try in laravel 4. but i am sure i gave you example with session that work well in both. So, you can try any one and get your solution, 1. using intended() and 2. session. <strong>Example 1:</strong> <pre class.....

By Hardik Savani | January 15, 2016 | | 7193 Viewer | Category : Laravel
READ MORE

How to count unique domains from email address field in MySQL ?

you want to count domain from your email address field in mysql. if you are working on PHP then you could do easily by using explode function and counting domains, but that way is a very bad logic and it take max time on execution when you have lot of data. But we can do easily in MySQL by using SUBSTRING_INDEX(). SUBSTRING_INDEX() take a three arguments string, delimeter and number.string is a source of string, the delimeter to search for in the string and the number parameter will search for delimeter.If pass negative in third argument then it will everything from the left of the targeted .....

By Hardik Savani | January 14, 2016 | | 821 Viewer | Category : PHP MySql
READ MORE

How to count number of files in folder and remove all files in folder example in Laravel 5 ?

you are working on laravel framwork and you want to count how many image or files in folder and print of front then you can do with laravel "File" class.you can also count in core PHP by using glob() but if you are working on laravel then you have to use 'File' class library and it is easy and more flexible to use. If you also want to remove all the files Or images in specific folder then you can delete by using "File" class function. sometimes we need to delete files in the folder. that way: <pre class="language-php"> use Input; use File; class HomeController extends AdminController { .....

By Hardik Savani | January 13, 2016 | | 1524 Viewer | Category : Laravel
READ MORE

How to check undefined, empty and null in JavaScript/JQuery ?

If you are working on jquery and However you want to check variable is undefined or not then you can easily check by typeof operator, which is simple, fast and cross-platform: <pre class="language-javascript"> if(typeof i == "undefined"){ alert('undefined'); } </pre> If you are working on jquery and However you want to check variable is empty or not then you can easily check by compare with empty string: <pre class="language-javascript"> if(i == ''){ alert('Empty'); } </pre> If you are working on jquery and However you want to check variable is null or not then you can easily che.....

By Hardik Savani | January 12, 2016 | | 704 Viewer | Category : Javascript jQuery
READ MORE

How to get last executed mysql query in laravel ?

If you are working on laravel framwork and you use query builder of laravel 5. but you want to get last executed mysql query from laravel. If you are working on laravel 5 then you have to first enable query log that way it can be store query log. At last getQueryLog() through you can get last executed query. I give you example of how to get last executed mysql query. you can use example as following example. <pre class="language-php"> public function querylog() { DB::enableQueryLog(); $item = Item::find(2); $last_query = DB::getQueryLog(); print_r($last_query); } </pre> Try this......

By Hardik Savani | January 11, 2016 | | 1352 Viewer | Category : Laravel MySql
READ MORE


Artisan Laravel 5.3 Gmail Bootbox.js HTML to PDF refspec Page Source Code Parsley Limit Upgrade WHERE Query php.ini Mailgun API MSSQL voyager package Append LIKE Query DATE_SUB Ionic framework Bitbucket Remember me Foreach maatwebsite Current Page Google API Client side validation Contact US Form getQueryLog Repo Elasticsearch Ip Address basename() AngularJS Trigger Where Not In Query Captcha code mac Notification Javascript Jquery Plugin DATEDIFF() User Sublime text 3 preg_match HTML Node JS Jquery Modal Composer parse ANDROID_HOME Folder Search Pagination Xampp Letter Percentage tree view Linkedin API Custom Command Plugins Loading Redis Validation league/flysystem-dropbox Null Executed Flash Message Function gravatar CASE_LOWER Automatically str_replace Key Constraint Delete no-captcha Express GET Ajax Package Location toastr js Setup Vue.JS Laravel Eloquent Email Verification Backup Packages RSS datatables helper Blocked Jquery Dialog Box Clear SUBSTRING_INDEX() json() Google Map Laravel Builder uppercase Magento 2 Dialog box mCustomScrollbar Plugin Scratch Generate file_exists Sortable screenshotmachine.com API Ubuntu Ajax google recaptcha code Service Provider FadeOut Send Div Paging Master Pull mysqld.sock Bootstrap Plugin characters Dropzone.js milon/barcode Dynamic Dependant Dropdown Datepicker npm Undefined ppa Example tagsinput.js Laravel Passport select box search Scout Package JWT stevebauman/location composer package Grayscale Image node.js Highlight JS Effect PHPExcel timestamps Accordion clockface plugin COUNT() groupBy() Query Builder Application Access Particular PostgreSQL Repository Pattern PHP