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