Creating a Website Using Laravel 5 Part 1: Elixir and Assets

Creating a Website Using Laravel 5 Part 1
Laravel 5 Website Tutorial Screenshot

In this Laravel 5 tutorial series, we will create a full-fledged, Ajax powered, content sharing website. Our web application will allow its users to post links to their content, like others’ content, comment on others’ content etc. There will be an administration panel for the site administrators, that will allow them to perform operations like create/block users, create new categories, edit, delete user’s posted links when needed and many more. All the users of our application will have a home page from where they will be able to track and perform CRUD operations on their shared links and comments. Continue reading Creating a Website Using Laravel 5 Part 1: Elixir and Assets

New Helper functions In Laravel 5

Hi guys, I have compiled a list of new helper functions that will be available in Laravel 5 in addition to the current ones.

Routing

get($uri,$action)

Registers a route to handle HTTP GET requests just like Route::get method call but with less code.

Examples:

//usage with closure.
get('/',function(){
    return 'home page';
});

//usage with array as action argument.
get('/',['as'=>'home','uses'=>'HomeController@index']);

post($uri,$action)

Registers a route to handle HTTP POST requests just like Route::post method call but with less code. Continue reading New Helper functions In Laravel 5

Laravel 5 New Auth Generators and User Authentication

Laravel 5 New Auth Generators and User Authentication
Laravel 5 New Auth Generators and User Authentication Screenshot

In my previous article, I had covered the new added features for validation in Laravel 5. Today, we will cover the new authentication facilities that are available in Laravel 5. With the inclusion of new Auth Generators, the whole process of setting up an authentication system has now become so much easier. For the demonstration purpose we will create a simple user login and registration system. Continue reading Laravel 5 New Auth Generators and User Authentication

Laravel 5 New Awesome Form Validation

Laravel 5 New Awesome Form Validation
Laravel 5 Form Validation Screenshot

The upcoming Laravel release i.e, 5 will be introducing some major changes in the Laravel Framework. The notable changes will be its new directory structure, the use of psr-4 auto-loading standard by default, support for Dependency Injection on Route and Controller methods and the one we will be discussing in this article i.e, form validation and form requests. Continue reading Laravel 5 New Awesome Form Validation

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