Featured
-
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Best 5 Lightweight PHP Frameworks for REST APIs Development
Are you ready to develop the Rest AP
by ankur.kumar -
PHP: Full-Stack Framework vs Micro Framework
A web framework can be described as a software fra
by ankit.bhatia -
How to get facebook profile picture by Facebook App
If you would like to get your profile picture in f
by vivek.rastogi -
Creating RESTful API in cakephp
This tutorial will help you to learn how to create
by pushpendra.rawat
Tags
Laravel 5.0 Custom Pagination with the help of Paginator and LengthAwarePaginator
In Laravel 5.0 we have "paginate" in Eloquent by which we can create pagination very easily by just following some simple steps.However there is a drawback with it as it only works if you know all the conditions prior. But what if you want to cre...
Reset password check for validation before login and redirecting
In Laravel 5.0 we have in built functionality for forgot password or resetting password. Once the user reset his/her password he/she is logged-in and redirected to the specific URL. But what if the user is deactivated by the super admin temporari...
Laravel 5.0 Including Sub View Into Another View
Many times we need some sections of HTML which need to be incorporated in many views and just to reduce redundancy we create separate views for it.
An example to accomplish that is stated below:-
Including other views in other view synt...
Laravel 5.0 Writing Static Query In Laravel
Many times we needs to write static query in Laravel. Some time due to the complexity of the query or sometime due to the MYSQL build in functions not supported in the Query Builder or in Eloquent in Laravel example LPAD. Thus at that time Larave...
Laravel 5.0 Relationship In Laravel And How To Use It
In laravel we can create relation between the tables and can use them where ever we need it we need not to create custom queries or use query builder to retrieve data. I have written one of example of my worked project.
//hasOne relationsh...
Laravel 5.0 Giving Alias in routing
In route in laravel we can create alias for a url. Laravel provide us the facility for giving alias for an url. We can use this url alias any where in our view
routes.php
Route::get("admin/department/{id}", ['as' => 'department.edit', 'u...
Laravel 5.0 Defining Different Named Fields as CREATED_AT And UPDATED_AT
In Laravel two fields are auto filled or modified they are created_at and updated_at but what if your table have different named fields example created and modified in it's place they won't be auto filled or modified automatically. So to make the...
Laravel 5.0 Creating Download CSV Link
In Laravel, many times we may need to create a link to download sample CSV file. So that user can download sample CSV file from our website and upload correct formatted file.
It's a very simple task and to accomplish that we need to follow fo...
Laravel 5.0 Creating Custom Middleware For Different Roles
Laravel provide us the facility to create our custom middleware for user's authentication. We can create different MIddleware for different roles. To accomplish it we need to follow the following steps.
Step 1st:- Creating new Middleware for...
Laravel 5.0 Grouping Similar Routing Requets Requests
In Laravel many times we need to group together many routing requests having same middleware, controller, suffix, etc. We can achieve that by using Route::group. The syntax of it is stated below.
Syntax :-
Route::group(["middleware" =&g...
Laravel 5.0 Creating Request Handler
In Lavarel one of the best practice is to use form validation rules to validate the submitted data. There are number of ways to do it . One way is to create form validation rules both in the controller or we can create a separate file under the a...
Laravel 5.0 Getting Old Values In the form
Many times we need to show our old values in a form after an error or validation stops our form from submitting. Laravel has a very nice way of retaining old values and populating it back into our form.
I myself used it in a drop down, where ...
Creating a custom password encrypt for Auth in laravel 5.0
Many times when we have an existing database with existing multiple records with set password, encrypted with a specific encrypt technique and then we try to immigrate to Laravel 5.0 and try to use Laravel Auth, it clashes.
Since, Lara...
How to store constants in laravel 5.0
In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:-
Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all ...