Laravel 7.x and 6.x create custom facade example from scratch

In this article, here i will give you step by step guide to create a custom facade in Laravel 5.5 application. You can also learn how to create custom service provider and custom aliases for your class in laravel 5. Ok So, We may need to create custom facade for creating general helper, some method that always use in whole application like here in example, i created getUserImage() method for get.....

Posted On December 8, 2017

PHP Laravel 5.5 - import export data into excel and csv using maatwebsite

Hi Guys, In this article, i will let you know how to import and export excel or csv file in your laravel 5.5 application. Here i will show you full example step by step to import excel file to database and export from database and give it to download. We will use maatwebsite composer package for import export data into excel and csv file. maatwebsite package is popular for generate csv file and.....

Posted On December 3, 2017

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 7.x and 6.x 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 7.x and 6.x?

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 7.x and 6.x 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 7.x and 6.x ?

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 7.x and 6.x 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

Blog Search

Copyright © 2020 HDTuto.com. All rights reserved.