HDTuto.com

PHP


Codeigniter 3 - call to undefined function site_url() Fixed

If you are fetching issue with undefined function site_url() in your codeigniter 3 application then you have to load "url" helper on auto load. I wanted to share this error, it will comes when you install fresh codeigniter 3 application and try to run, you will find this error undefined function site_url() when you use site_url() helper. So, if you used site_url() helper then you need to load "u.....

Posted On November 23, 2017

PHP Laravel 5 Rating System Example from Scratch

Hi Friends, You add star rating system in your laravel 5 application by using Laravel Rateable composer package with bootstrap-star-rating jquery plugin for review. Here in this article i will explain how to implement star rating system in your php laravel framework project step by step tutorial. We always would like to see our website or product popularity. If you see in there are many website, .....

Posted On November 22, 2017

Laravel 5.5 - 1071 specified key was too long max key length is 767 bytes

Someday ago, i wan working on my new laravel 5.5 application in my new system, with new configuration. I was simply installed laravel 5.5 app and then i created mysql database and then i run migration, but i got following error on my terminal. <br/> "[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key.....

Posted On November 21, 2017

How to Create Thumbnail Image in PHP?

Hi Friends. In this article, i will let you know how to generate thumbnail image while uploading in PHP. Here i will show you quick and simple code of upload picture and make thumbnail image using php gd library. If you know, we moistly require to set several images in website and that's why it take more time to load of webpage. So if you make it better on size like generate thumbnail image for i.....

Posted On November 19, 2017

How to change created at and updated_at column name in Laravel 5?

If you want to change default column name of created_at and updated_at in your database then you are a right place. Sometime, we require to change column name because it is require when we migrate over project from codeigniter to laravel or core php to laravel etc. At that moment old developer take column name like creation_date, create_date, post_date etc as he know better name hahaha. But you re.....

Posted On November 18, 2017

Laravel 5.5 country list using Countries package

Hi Guys. In this article i will let you know about countries dropdown in laravel. We may sometime need to get all countries with flag, currency, states, languages, code, timezone, capital, calling code, sign, area, latitude and logitude, multiple ISO codes etc. So It is not better if you create database table with country and then manually you store all information from google or something else. .....

Posted On November 17, 2017

How to force redirect http to https in Laravel 5.5 ?

When i was working on my first laravel 5.5 application and i make it live and i want secure connection using ssl, i buy from hosting provider. But i was thinking how to redirect http to https of url in Laravel. After research i found to force redirect http to https my website link. If you are using Laravel 5.5 then you can redirect http to https link using middleware. I would like to create middl.....

Posted On November 15, 2017

Laravel 5.5 active menu item using request

We know all that laravel is more famous as back-end like api development, admin panel etc. If you are wanted to make admin panel then you select theme like adminLT or any other bootstrap theme. When you make side bar or menu item then you have to make it active when we current on that page. like we have several link users, admins, products, items etc So when you are in products page then it should.....

Posted On November 14, 2017

Laravel 5.5 Ajax Pagination Example

Hi Guys. In this article i will let you know how to make jquery ajax pagination in Laravel 5.5 application. As we know, today ajax is more use because every one wants to his web app should be work fast. So if you want make your web app more fast then you have to use jquery ajax. Using jquery ajax you can simply get data and post data using api. So here i want to share with you how to create ajax .....

Posted On November 13, 2017

Laravel 5: Ajax Post 500 (Internal Server Error) - Fix

If you are fetching 500 internal server error in jquery ajax post request in laravel 5, then you are a right place. Here i will let you know how to fix 500 (internal server error) ajax post request in laravel 5. If you know well laravel then you know about csrf token, laravel provide best security using csrf token. So you have each time pass csrf_token when you fire ajax post, delete or put reque.....

Posted On November 11, 2017