Tag : Example



How to set maxlength for textarea in javascript ?

Today, i was planing to post something like regarding to javascript. I was thinking what post should i add and i plan to make maxlength validation with display remaining character count using javascript. So you can simply make character limit with remaining counter in javascript. Here, i am going to make very simple example to do this, you don't require to import jquery. You have to just write following javascript code. So I used onkeyup and onkeydown event of code javascript. It would be easy to use using onkeydown and onkeyup event and make it character count validation in html. So let's j.....

By Hardik Savani | October 18, 2017 | | 166 Viewer | Category : Javascript HTML
READ MORE

Laravel 5.5 Simple CMS Website example using asgardcms

Today i am going to share with you how to use cms in laravel 5.5 application. As we know wordpress is best cms in the world and almost people like to use cms for his company website or blog. But if we think about codding style, security or structure then laravel framework is a best. So There are several provide laravel cms to make quick back end admin panel and also work like wordpress blog. So, in this post i would like to introduce same simple cms using laravel, that know as "asgard cms". asgard cms provide very simple modules function and you can simply quick create modules like on wordpre.....

By Hardik Savani | October 15, 2017 | | 1752 Viewer | Category : PHP Laravel Bootstrap MySql Installation Ubuntu
READ MORE

How to upload and resize image in PHP ?

After a long time i am going to share something with you friends. But Anyway Today i will show you how to generate thumbnail image in PHP. Here i will make very simple code to upload image and resize that image too. As we know well images are very important to display on our website. As specially when if you require small size of image and you are displaying big image then it can be take more time to load. So your photos should be resize able or need to generate thumbnail when user upload those images. So here i will explain how to create thumbnail image in your code php project. Here, i us.....

By Hardik Savani | October 10, 2017 | | 802 Viewer | Category : PHP
READ MORE

Full Text Search in Laravel 5 Example

Are you want to make full text search in your laravel 5.5 application ?, If Yes then you are a right place. In this post i am going to share with you how to create full text search using "nicolaslopezj/searchable" composer package in laravel 5. In real field we almost require to create full text search like if you have users table and there are several columns like id, first name, last name, email, address, city etc. So if you search just "a" then if should filter with all the columns. So it's like just run simple query with search, it should work like datatables search. So don't worry about .....

By Hardik Savani | October 4, 2017 | | 3280 Viewer | Category : PHP Laravel Bootstrap
READ MORE

How to generate UUID in Laravel 5 ?

Today i am going to share with you how to create uuid in laravel 5 application. You can create quick uuid using generator. I will use composer package for generate unique uuid. UUID stand for universally unique identifier and is a 128-bit number used to identify information in computer pc. In this post i will show you how to generate uuid in laravel 5 application. In this post we will use webpatser/laravel-uuid composer package for generate uuid in laravel 5. We have to simple install webpatser/laravel-uuid package to your laravel application and then a second you can generate uuid. So, you.....

By Hardik Savani | September 28, 2017 | | 1447 Viewer | Category : PHP Laravel
READ MORE

PHP - How to create zip file and download using ZipArchive ?

Today, i am going to share with you how to create zip file using ZipArchive then give for download. So here i will give you very simple example to do this. We may require to create zip archive file using php code. We need to add some photos, docs etc on that zip file then give download. So here i am going to make very simple function createZip() that will help to create zip archive file. Using this function you have to simple pass array of file, docs, picture with path. So here i make very simple index.php file and you have to just copy that and run it. Make sure you have two image file sho.....

By Hardik Savani | September 24, 2017 | | 1248 Viewer | Category : PHP
READ MORE

Laravel 5.5 Create Custom Middleware example

Middleware are used for filter HTTP requests in your web application. One of the basic requirement of any web application is HTTP requests filter, so we have to make is well for example make auth middleware. auth middleware always check if you are going then and then you can access those page. In laravel 5.5 application they are provide several default web middleware but in this tutorial we are going to create custom middleware for laravel 5.5 application. In this example, i am going to create "checkType" middleware and i will use simply on route, when they route will run you must have to pas.....

By Hardik Savani | September 17, 2017 | | 4187 Viewer | Category : PHP Laravel
READ MORE

Bootstrap star rating example using bootstrap-star-rating plugin

Today i am going to share with you design layout of bootstrap star rating in html. We may sometime require to do star rating system in your php, laravel, codeigniter etc projects. but you think how to make design for star rating because layout is always most important. If you doing manually using js and css then i don't think you can do it quickly, so it can take time. Here, we are going to use bootstrap-star-rating bootstrap plugin for star rating. bootstrap-star-rating plugin provide very simple way to make five star design with jquery code. Also they are give us very easy way to do this. w.....

By Hardik Savani | September 15, 2017 | | 2624 Viewer | Category : Bootstrap HTML
READ MORE

Laravel 5.5 custom validation rules example

As we know very well about, few days ago laravel 5.5 released and they introduce several feature. They also change method of create custom validation rules. So in this post i explain you how to create custom validation rules in laravel 5.5 application. Validation is a primary requirement of every project, without validation we can not release successful application or website. Because if you haven't implemented validation then you get wrong information from use input. Laravel provide there are several default validation rules like required, max, min, array, unique, digits, in, boolean, befor.....

By Hardik Savani | September 10, 2017 | | 8637 Viewer | Category : PHP Laravel
READ MORE

Laravel 5.5 CRUD Example from scratch

In this tutorial i will shows how you can create basic crud(create, read, update and delete) module in laravel 5.5 application. Laravel is a popular open-source PHP MVC Framework with lots of advanced development features. Laravel released it's new version 5.5 as few days ago. If you are learner or beginner of crud example in laravel 5.5 application then you are a right place. It's always help to more understand or learn from crud application for beginner developer. Here, i will create insert, update, delete and view with pagination example of articles. You can simply create new article, vi.....

By Hardik Savani | September 3, 2017 | | 90356 Viewer | Category : PHP Laravel Bootstrap MySql Installation
READ MORE

    Laravel 5.3 - import export csv and excel file into database

    Laravel 5.3 - import export csv and excel file into database

    Open Post

    Ajax Image Upload Example with Validation in PHP Laravel Framework

    Ajax Image Upload Example with Validation in PHP Laravel Framework

    Open Post

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2

    Open Post

    AngularJS - update bind ng-model input value from Jquery Code

    AngularJS - update bind ng-model input value from Jquery Code

    Open Post

    How to get current month records in Laravel 5?

    How to get current month records in Laravel 5?

    Open Post

    Laravel 5.3 - Create Bootstrap Contact US Form using Form Request

    Laravel 5.3 - Create Bootstrap Contact US Form using Form Request

    Open Post