Laravel


Laravel 5.5 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

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 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