
Search In
Hello reader's If are using the Windows environment and developing the SSL based websites then you might have to enable the SSL for PHP for the first time. So to enable that you just need to perform the following tasks steps:-
Step1: Rename php.in
Below is the situation which I want to solve
I have an Eloquent model which has a related model:
public function option() {
return $this->hasOne('RepairOption', 'repair_item_id');
}
public function setOptionArrayAttribute($v
You need to give class to the button and attach the .on() method with it.
If you have multiple buttons that when you click one, it changes classes & the text inside.
Here is the simple code to do this:
$('.EgClassName').on('click', function(e){
Retrieving GET and POST data inside controller in the basic requirement which should know everyone when we are working in any framework. In Laravel 4.x It is very easy to get "Get & Post" data.
Examples:
The Example for Get data is
$currentTab
When we are working on Laravel then we should know the php artisan and composer and the differences between “php artisan dump-autoload” and “composer dump-autoload” are:
Laravel's Autoload is a bit different:
1) It will in fact use Composer for
Hello, If you need to convert the interger to binary then by using Javasript you can perform it very fast, Let see the example below:-
var binary = (56 >>> 0).toString(2);
console.log(binary);
console.log(parseInt(binary, 2) >> 0);
In php foreach loops are used to access all the elements of the array. The syntax is as
foreach ($array as $key =>$value)
{
}
In above syntax , the no. of times loop get executed is equal to the no of elements in the array.
the same above s
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
What is the work of each() function ?
PHP each() function mainly Return the current key and value pair from an array.
Syntax of each() function:
each(array_name)
You can take reference form below example to use of each() function.
<?php
//
Working in software/IT companies we all come across a word that is coined rampantly - the Agile development. So what is this and why do you also need to understand this was what troubled me few years back and I went onto an Online search expedition
