Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Paths in laravel 4.x

There are n number of functions in laravel 4.x which is used to define path that are app_path: app_path is a function which is used to get the fully qualified path of the app directory. Example: $path = app_path(); base_path: base_path is a fu

The initialize method in Ruby

This method is like a constructor of other object oriented programming languages. when you want to initialize some class variables while creating an object, we use this method.. like any other ruby method,it starts with def keyword class abc def

Laravel, get last insert id using Eloquent

Laravel 4.x we have a facility to get last inserted id easily. By showing one of my code you will get easily understanding. Example: $karmaNote = new Karmanote; $karmaNote ->reqid = $meetingId; $karmaNote ->connectionidgGi

Get all routes, Laravel 4

This is one of the important point which is not available on even stackoverflow. I want that by using one controller we at the moment which will handle every request that comes to my laravel 4.x application.This is one of the question which we should

How to set a default attribute value for a Laravel / Eloquent model?

Laravel 4.x provide n number of services to solve basic issues. By using Laravel 4.x we will easily set a default attribute for a Laravel/Eloquent model. To achieve this we have to define value like below example: Example: protected $defaults = ar

How to get the current URL inside @if statement (blade) in Laravel 4?

In Laravel 4.x we have many predefined function which will help us to solve basic requirement. For getting the current URL inside @if statement (blade) in Laravel 4? are very easy.Syntax and Example for getting the current URL is: Syntax: The synt

How to update a field in the database in cakephp 2.x

To update a a field in the database in cakephp we uses an array, the task is done as, $this->request->id = $id; $data=array(); $data['User']['id'] = $this->request->id; $data['User']['fname'] = $filename; $this->User-&g

How to use list() function in php ?

What is the use of list() function? The list() function is used to assign values to a list of variables in one operation. list() function basically works on numerical arrays. Syntax of list() function:- list(variable1,variable2,variable3.....) &l

'Failed to open stream: Permission denied' error - Laravel

Some time when we want to access our public folder then we get the error "Failed to open stream: Permission denie' error - Laravel" . So when we get this error .Do not think much we have to clear our cache and just give permission to our folder and w

PNG Image masking with rotation and alignment using Imagemagick

We can mask a png image over any other image with rotation and proper alignment. Let say for example, if we need to replace the human face of an image with another face, then we need this type of masking. There are various ways and command within im

1 27 217
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: