
Search In
There are n number of functions of strings in laravel 4.x which is used to perform action in string that are
camel_case:
camel_case is a function which is used to convert the given string to camelCase.
Example:
$camel = camel_case('foo_bar');
Res
The Carbon class is inherited from the PHP DateTime class.
Example:
<?php
class Carbon extends \DateTime
{
// code here
}
?>
There are n number of situation when we want to get the 1 day or 2 days old data. For this we will do calculati
In Laravel 4.x, We have a function by which we can run our query the syntax is
Syntax:
DB::getQueryLog()
By using this function We can run our query.
Example
$queries = DB::getQueryLog();
$last_query = end($queries);
We have also profiler pac
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
I want to update my data but I dont want to update my timestamps. Laravel 4.x provide us the facility to update our data without updating our timestamps.
The example to Update without touching timestamps using Laravel 4.x is:
$user = User::find(1);
what is count() function
The count() is utilize to count all data elements in an array, or in other word we can say The count() function returns the number of elements in an array.
You can see below example of count() function.
<?php
The readyState property in QTP returns the loading status of the current browser . This property
Will be of immense help if the AUT under test has a lot of sync issues while running the script .
This property returns one of four values :
1. unini
We can use a Regular Expressions width the help of HTML 5. You can use this with "textarea" and "Input" tags.
<form action="" method="post">
<label for="username">Create a Username: </label>
<input type="text"
Recently I was working on rails 4 application and there was a need to get current absolute URL. So I noticed that as rails evolved, this is also getting changed and thought to pen down these ways for all the rails versions.
For Rails 3.2 or Rails 4
Hello readers, today we discuss about "Generate a random, unique password or alphanumeric string" using Php function.
function random_string($len) {
$key = '';
$keys = array_merge(range(0, 9));
for ($i = 0; $i < $len; $i++) {
