Latest Post

Example of Cron Job in Laravel 5

Whenever you want to define your scheduler task, and if you are working on laravel framework then you can do it easy way and very secure. Laravel provide <strong>Scheduling</strong> and Scheduling through you can manage your cron, if you need to run every day, every minute, every hourly, weekly, on specified days.So, basically i going to give example how to create cronjobs in laravel. First you have to create one command that way you can create proper programming and good way, but you can also do without create command, It is good if you create your own command and with good code. So, open yo.....

By Hardik Savani | February 6, 2016 | | 3827 Viewer | Category : Laravel

How to get months difference between two dates in laravel?

Whenever you need to get difference between two dates in months 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 months. In Following example you can see, we have a two dates, first $to variable and second one $from variable. Carbon class diffInMonths 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 = \C.....

By Hardik Savani | February 6, 2016 | | 988 Viewer | Category : Laravel

How to get last inserted id in laravel 5?

Its very common need to get last insert id in programming field, if you are working on laravel framework and you want to fetch last created id, i mean max id, then you do easily.laravel provide method to get last inserted id. If you are working with DB::table() then you have to use insertGetId() for insert data into database. this function always return inserted record id(primary key).it is very simple way to get id, in following example you can see and undestand more: <strong>Example:</strong> <pre class="language-php"> public function getLastInsertedIdDB() { $id = DB::table('items')->inser.....

By Hardik Savani | February 6, 2016 | | 5978 Viewer | Category : Laravel

Select only one checkbox at a time using Jquery

If you need to select one checkbox at a time in multiple checkbox, i mean you want to allow anly one checkbox user can check then you can do easily using jquery. jquery prop() through you can give attribute value checked equel to true or false. if you have banch of checkbox like as example, and if you want to check checkbox at time one by using jquery then you can use this code. In following example use for you to do select at a time one. <strong>Example:</strong> <pre class="code language-html"> <html> <head> <title>Select only one checkbox at time</title> <scri.....

By Hardik Savani | February 5, 2016 | | 3109 Viewer | Category : Javascript HTML jQuery

PHP: How to count files in folder?

In PHP, you are work on php and you want to need display count number of files in specific folder then you do, glob() through you count number of file are there in specified folder. now in following example you can see "/var/www/test" in this folder, count how many files are there in that folder. glob function take a two argument first one for directory or folder path and second argument for filter. Filter means if you pass '*' then it will count all type of file, i mean all extension, but if you need to count just text file then you can put like '*.txt'. That't it, if in your directory, func.....

By Hardik Savani | February 4, 2016 | | 1132 Viewer | Category : PHP

LIKE Query Client side validation Subscription select2.js Null ServiceProvider Facebook API Lavacharts MySql php.ini Linux CRUD hasColumn Search Bootbox.js Top csv COUNT() Form Validation Location Issue jQuery Backup Query Builder PingPong Plugins Parameters Mailchimp API Toggle Trans Helper Cross Redis Animation Send Remote Jquery Modal Limit typed.js plugin xoxco tags input Now auth() Script parse Twitter Bootstrap FadeOut upload_max_filesize Snippet ajaxComplete Interfaces Twitter API hasTable Input Artisan Command View Language Zoho mail Source Code Opencart Eloquent-Sluggable Package Last Solve Key Constraint word-wrap Autocomplete Dropbox API Strip Tags getQueryLog toSql chmod Attribute Connection voyager package Xampp Convert Key CORS groupBy() Pull Ionic Subscribe Migration Update SweetAlert Plugin oauth Authentication Paypal Integration dompdf Excel MassAssignmentException Form Jquery Numeric HTML to PDF Check RSS max_file_uploads Dialog box Select Query thomaswelton/laravel-gravatar Reset Thumbnails Linkedin API Switchery JS Select Request Method Google OAuth JWT Effect New Features bootstrap-growl split mod_rewrite Accordion Month REST Ionic framework node.js Run Project Laravel Cashier colorpicker str_replace Apache encrypter Typeahead JS file_exists() toastr js Sendgrid ajaxStart Repo Popup Box Export Scroll execute query Character Prompt modal Permission Custom Command Sql After filter_var Laravel 5.2 AngularJS Filter Cache Windows Executed Path Setup clearInterval() CloudConvert API