Laravel

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

Read More »Model Relationhsip in Laravel

How to work with ajax in laravel

Hello World, Today i am going to discuss that how to work with ajax in laravel. In this tutorial, We will create simple example to perform ajax working in laravel. In this example, We will click on a button then load the data with jquery ajax technology and show in the html div element. I hope you will learn and enjoy this tutorial.

Read More »How to work with ajax in laravel

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.

Read More »Create Read Update and delete data with Laravel 5

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.

Read More »Create project from scratch with laravel 5

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

Read More »Add data in database in laravel

Upload Image in Laravel 5

Hello world, this tutorial is about how to upload image in laravel 5. In this tutorial, we will create simple example with upload image in folder and then save that image in database table. I have divided this tutorial in following parts:

  • Setup laravel 5 on xampp server
  • Setup controller, view and route
  • Upload image in folder
  • Setup database, model and migration
  • Save image in database table

Read More »Upload Image in Laravel 5

create-todo-app-update-and-delete

Create Todo app with laravel – Update and Delete

Hello World, Welcome to my laravel tutorial series Learn Laravel with example. This is second part of create todo app with laravel. In the previous article, we have learned that how to add and show data with laravel and MySQL. In this article we will extend the previous article. We will perform update and delete operation with laravel in this article.

I have divided this tutorial in the following parts.

Read More »Create Todo app with laravel – Update and Delete