Tag Archives: Learn laravel with example

how-to-create-pagination-in-laravel

Create pagination in laravel

Hello World, Today i am going to create pagination in laravel. In this laravel tutorial, we will implement simple bootstrap 4 style pagination. For this example, i will extends my previous tutorial in which i have implemented ajax working in laravel.

I have divided this tutorial into following parts:

  • Fetch data according to pagination in controller
  • Setup route for showing all data
  • Create template to show data with pagination

Continue reading

implement-search-with-laravel

Implement search in laravel

Hello World, Welcome to my website. Today i am going to implement search in laravel. In this tutorial, I will extends my previous tutorial. My previous four laravel tutorials are interconnected with each other. I want to share my knowledge with example so that i am following my previous tutorial because in my previous tutorials i an working on blog application. In this tutorial, we will implement search with url parameter and count the total search result.

I have divided this tutorial into following parts,

  • Create search form
  • Implement search with controller
  • Run the project

Continue reading

working-with-form-in-laravel

Working with form in laravel

Hello World, Welcome to this website. Today i am going to create a tutorial in which we will create form and submit form data in database with validation in laravel. In my recent tutorials, I am creating a blog application.In this tutorial, i will implement the add comment section in this blog application. so lets start to working with form in laravel.

I have divided this tutorial in following steps,

  • Create Add Comment form in post detail page
  • Setup Route to submit the comment form
  • Setup Post Controller to submit form and save data in database
  • Run the project

Continue reading

Model Relationhsip in Laravel

Hello World, Today i am going to discuss model relationship in laravel. We will extends our previous tutorial in which we fetch data from database with ajax in laravel. In previous tutorial, We are fetching posts from database. In this tutorial, We will add comments in database to specific post and then fetch specific post comments with One to Many Relationship.

I have divided this tutorial in following steps:

  • About model relationship
  • About eloquent ORM
  • One to Many Relationship
  • Define comment model
  • Define One to Many relationship
  • Fetch specific post comments with model relationship in post controller
  • Create post detail blade template
  • Add some dummy comments with laravel factory
  • Run the project

Continue reading

fetch-data-from-database-with-ajax-in-laravel

Fetch data from database with ajax in laravel

Hello World, Welcome to my website. Today i am going to discuss about ajax and laravel. In this tutorial, we will learn how to fetch data from database with ajax in laravel. In this tutorial, we will extend the previous tutorial, how to work with ajax in laravel. In the previous article, we have implemented ajax on static data. In this, we will fetch data from database.

I have divided this tutorial in followings steps:

  • Database Connectivity
  • Create Modal and Migrations
  • Add Dummy Data in database
  • PostController Setting
  • Run the project

Continue reading

create-read-update-and-delete-with-laravel

Create Read Update and delete data with Laravel 5

Hello World, Welcome to my website. This is the fourth part of the series Create project from scratch with laravel 5. In the previous part, we have discussed how to create custom admin login with laravel 5.

In this part, We will discuss how we can create read update and delete data with laravel 5. In this series, we are creating an employee management system. This part will help us to create Employee CRUD ( Create, Read, Update and Delete) with laravel. We will add, modify, view and delete employee detail in this part. I have divided this tutorial into the following parts.

Continue reading

create-project-from-scratch-with-laravel

Setup laravel 5 on local system and create hello world app

Hello World, Welcome to my website. This is the second part of the series Create project from scratch with laravel 5. In the first part of this series, we have discussed about the project and technologies which we are using in this series. In this part, we will setup laravel 5 on local system and create hello world app.

Continue reading

create-project-from-scratch-with-laravel

Create project from scratch with laravel 5

Hello World, welcome to my website. Today i am going to create a tutorial series of laravel 5. In this series, we will create a project from scratch. I have divided this series in following parts.

Continue reading

learn-laravel-with-example

Add data in database in laravel

Hello World, Welcome to my website. Today we will discuss about how we can add data in database in laravel. In the previous tutorial, we have discussed about how we can implement form validation in laravel.

In this tutorial, we will extends the previous article. In this article, we will learn how can connect database with laravel add how we can add data in database.  I have devided this tutorial in following steps.

  • Setup controller for adding data
  • Show success message in add form

Continue reading