Latest Post

How to revoke 'git add' before 'git commit' ?

Sometimes you need to undo your git file before you git comment command. Because you made a some misteck or wrong code and you did git add using "git add ." command then you think how to undo your code before git commit command. But you can do that using git reset command, if you need to undo all file Or you may need to undo just one then you can do using git reset command, you can see bellow command. <strong>Example:</strong> <pre> // For Spesific file git reset <filename> // For all files git reset </pre>

By Hardik Savani | February 28, 2016 | | 807 Viewer | Category : Git
READ MORE

How to create laravel 5 widgets ?

In this post you can learn how to create your own widgets in laravel 5.2, First thing why we are create widgets, So we can use widget because when we can create re-usable code, for example you have manu items and comes from database like home, items, products, aboutus, contact us etc. you require to display in top header, in sidebar and in footer. But in top you have to just display home and aboutus, and in sidebar products and items same that way in footer. So, basically you have to display in three place in your site page. widgets through you can make one function or view and call just one w.....

By Hardik Savani | February 27, 2016 | | 7376 Viewer | Category : Laravel Pingpong
READ MORE

How to get ckeditor value with tags on ajax-submit ?

If you are use ckeditor for textarea and you need to fore ajax submit or form js submit, but you can't find ckeditor value in your controller or php file. So, first you have to update field using CKEDITOR.instances. so you can try to following code. <pre class="language-javascript"> for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); </pre>

By Hardik Savani | February 26, 2016 | | 1716 Viewer | Category : PHP Javascript jQuery
READ MORE

How to get max attribute value in jquery?

Sometimes, you have a many tag with same class and attribute with value, but you need to find maximal value of attribute from that comman class, In bellow you have same html tag: <pre class="code language-html"> <ul> <li class="test" data-id="3">hi</li> <li class="test" data-id="5">hey</li> <li class="test" data-id="1">hello</li> </ul> </pre> Now, you require to get max value, i mean you need to 5, because that is big value from other, so you can get maximal value from this way: <pre class="language-javascript"> var max = 0; $('.test').each(fu.....

By Hardik Savani | February 23, 2016 | | 784 Viewer | Category : Javascript HTML jQuery
READ MORE

Codeigniter Angularjs http post not working

Sometimes, you face problem you can't get post data using $this->input->post(), when you fire $http.post() using AngularJS or Jquery. I also face this issue, i can't receive post value when i fire $http.post in AngularJS, But i found how to receive post data or json data in Codeigniter controller. in following example through you can solve your problem: <pre class="language-php"> public function store() { $this->load->database(); $_POST = json_decode(file_get_contents('php://input'), true); $posts = $this->input->post(); $this->db->insert('posts', $posts); } </pre>

By Hardik Savani | February 22, 2016 | | 2202 Viewer | Category : PHP jQuery AngularJS Codeigniter
READ MORE


encrypter Automatically Origin intervention/image Master clipboard.js response() chmod CASE_LOWER Null Subscription select2.js Email Billing DATE_SUB strtolower File Upload Sitemap Clear Append Function Letter Commit Custom Log Activity File Notification Terminal Protection Artisan Backup First Form JS Plugin Config Listener Git HTML to PDF basename() Mysql Concat Image Gallery Update Old length clearInterval() View Route Client side validation phpmyadmin Twitter API RAND() Object Prompt modal whitespace toSql Fullcalendar JS Number SEO Database Form Validation Percentage Global Variable Dropbox API select box search Last Library Facebook API Array SUM() MySql Folder thomaswelton/laravel-gravatar Foreach Ionic framework Index Thumbnails Links Zip Issue Base URL Select LIKE Query Parsleyjs Sublime text 3 Switchery JS Command ngclipboard.js Google Map GET Ajax After Object to Array PHPUnit Manual PHP artisan node.js gmaps.js Link pop() DB::raw() file_exists Sortable JS RSS Chosen JS validator.js Frontside Validation Jquery UI Payment Gateway Controller API mCustomScrollbar Plugin Paypal Integration Failed no-captcha google recaptcha code Delete Package helper DB Sql Linux Ajax Request Control MassAssignmentException Collapse Auth bootstrap-growl Location Ubuntu 14.04 User Agent Botdetect Captcha Laravel Cashier Capitalize enableQueryLog mac Algolia Package Input mysqld.sock Laravel Resource AngularJS Directive Limit Module Value Twitter Bootstrap Generate ajaxStart Laravel Eloquent Database Seeder Directory Timepicker Calculate