
Search In
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
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 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
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
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
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
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
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
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
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
