Tag Archives: laravel 5 tutorials

How to create api with laravel 5

Hello World, Welcome to my website. Today I will discuss how to create API with laravel 5. Laravel provides a very efficient way to create API with its resource controller which are already structured around REST verbs and patterns. In this tutorial, we will create a simple example to better understand APIs.

I am using laravel 5.8

I have divided this tutorial into the following parts.

  • Create Resource Controller
  • Create Modal
  • Access Data via Resource Controller
  • API Routing
  • Test API in Postman

Continue reading

what-is-rate-limiting-in-laravel-5

What is rate limiting in laravel 5

Hello World, Today i am going to discuss “what is rate limiting in laravel 5“. This is a very easy tutorial. In this tutorial, we will show you the route code for rate limiting. I have divided this tutorial into the following parts.

  • What is rate limiting
  • How to define rate limiting in laravel 5
  • Text Example

Continue reading

create-custom-package-in-laravel-5

How to create a custom package in laravel 5

Hello World, Today I am going to discuss how to create a custom package in laravel 5. In this tutorial, we will create a crud package. We will discuss migrations, routes, models, controllers, views and package configuration in this tutorial. You can download the full source code of this tutorials at here.

I have divided this tutorial in the following part,

  • Package introduction
  • Package directory structure
  • Package configuration via composer
  • Load package from composer.json file
  • Create Crud Controller
  • Create Crud Model and migration
  • Create Crud Routes
  • Create Crud Views
  • Connect Package with Laravel
  • Test you package

Continue reading

create-reactjs-application-with-laravel-api

create reactjs application with laravel api

Hello World, Today i am going to create reactjs application with laravel api from scratch. In this application, we will fetch data from database with laravel resource api and show in reactjs application. In this tutorial, I have created two different application one is in laravel and other is in reactjs and then we have connected these both with api.

Laravel

  • Install Laravel
  • Create product model and migration
  • Generate dummy data
  • Create Product resource
  • Route for api request
  • Test our application

Continue reading

Learn laravel directory structure

Hello World,Today i am going to create article in which we will learn laravel directory structure. In this article, we will learn about all folders and files at the root path of laravel.

Continue reading

create-load-more-ajax-pagination-in-laravel-5

Create load more pagination with ajax in laravel | Laravel Tutorials

Hello World, Today i am going to create load more pagination with ajax in laravel. In this tutorial, we will create a product list example in which we will show product list with load more button. When we will click on the load more button the more products will load at the bottom of current list without reloading the page. If all products has been loaded then load more button will hide. So lets start this tutorial.

I have divided this tutorials into followings steps:

  • Create product model and migration
  • Table schema setting for product data
  • Generate dummy data for products
  • Create Product Controller
  • Routes Setting
  • Create product list template to show default products
  • Implement load more pagination code
  • Route Setting
  • Product Controller Setting
  • Run the example application

Continue reading