Creating a Blog Using Laravel 4 Part 4: Layout and Views

Previous parts of this tutorial:

This will be the last part of the Creating a Blog using Laravel series, In this part, we will cover the layout and views for the Blog Application we are creating. Let’s see what we have already covered:

  • Laravel Setup
  • Laravel Migrations
  • Model creation using Eloquent ORM
  • Database Seeding
  • Controllers
  • Routing

View: The V in MVC

Views in a MVC web framework are used to isolate the presentation logic from the business, and the application logic. In a typical MVC web framework, whenever a request is received, the routing component parses the request and figures out the right controller action to handle the request. The controller action, then fetches the requested data from the model and passes it to the view. And finally, a response is returned containing the HTML markup generated by the view to present the data. Continue reading Creating a Blog Using Laravel 4 Part 4: Layout and Views

Creating a Blog Using Laravel 4 Part 3: Routing

Creating a Blog Using Laravel 4 Part 3 Routing
Laravel 4 Blog Tutorial – Routing Screenshot

Previous parts of this tutorial:

Topics we have covered so far:

  • Laravel Setup
  • Laravel Migrations
  • Model creation using Eloquent ORM
  • Database Seeding
  • Controllers

Today we will cover the routing for our blog application. So, let’s get started.

Routing in Laravel

Routing plays an essential role in the core workings of any MVC framework. It specifies a mapping between requests and response generators i.e, controller actions. In other words, routing defines the entry points of a web application. A flexible routing provides a greater control over the flow of a web application.
Laravel has a very powerful routing component built right on the top of Symfony’s routing component, and provides you with a very easy to use interface and a rich set of functionalities. Continue reading Creating a Blog Using Laravel 4 Part 3: Routing

Creating a Blog Using Laravel 4 Part 1: Models and Seeding

Creating a Blog Using Laravel 4 Part 1
Laravel 4 Blog Tutorial Screenshot

In this article we will create a simple blog using Laravel 4. Our blog application will have the following features:

User Authentication in Laravel 4.x: Simple Guide Part 2

Part 1: User Authentication in Laravel 4.x: Simple Guide Part 1

user authentication in laravel 4 part 2
User Authentication In Laravel Screenshot

Let’s see what we have covered so far in the first part of this tutorial:

  • Database Creation And Configuration
  • Migrations
  • Seeding
  • Controllers

Now we are left with Routing and Views, let’s start with routes first.

Defining Routes

Since we are using restful controllers in our application, we will be using Route::controller() method for registering routes. Route::controller() allows us to define all the routes to a restful controller’s actions using a single call per controller. Continue reading User Authentication in Laravel 4.x: Simple Guide Part 2

User Authentication in Laravel 4.x: Simple Guide Part 1

user authentication in laravel 4 part 1
User Authentication In Laravel 4 Tutorial

In my previous article regarding Laravel migrations, I have mentioned that Laravel has a nice Authentication component. Today, we will see how we can use Laravel’s Auth component to build a simple user authentication in Laravel 4. So, let’s get started. Continue reading User Authentication in Laravel 4.x: Simple Guide Part 1