go to file | ⌘T
find in project | ⌘P
go to project | ⌘⌃P
go to methods | ⌘R
go to line | ⌃G
<tr> | |
<td><strong>Credit Card Expiration:<span style="color:#ff0000;">*</span></strong></td> | |
<td> | |
<select name="cc_exp_mo" id="cc_exp_mo"> | |
<?php | |
$month = array (1=>"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); | |
foreach($month as $key=>$val) | |
{ | |
echo "<option value='" . str_pad($key,2,"0",STR_PAD_LEFT) . "'>" . $val . "</option>"; | |
} |
<?php | |
$country_array = array('AF'=>'AFGHANISTAN', | |
'AL'=>'ALBANIA', | |
'DZ'=>'ALGERIA', | |
'AS'=>'AMERICAN SAMOA', | |
'AD'=>'ANDORRA', | |
'AO'=>'ANGOLA', | |
'AI'=>'ANGUILLA', | |
'AQ'=>'ANTARCTICA', |
##An Overview Seeing how RESTful API's are catching on more and more everyday Laravel makes not only building API's easier but securing those API's. So what is so great about Laravel 5.2's Auth Classes/Components/and Helpers? Well to begin with Laravel 5.2 not only has rate limiting built into 5.2, but it also has the settings setup for you to take advantage of this feature right out of the box.
The ideal setup for securing a API is not always a login page. Instead appending an api_token to the end of a query string and use that to authenticate the API requests. It just so happens that Laravel 5.2 comes with a TokenGuard class that assists in appending api tokens to query strings by implementing the Guard interface. If your unfamiliar with Laravel, Guard is an
var x = 1; | |
while(x<10){ | |
document.write(x + '<br>'); | |
x = x + 1; //// or x++ | |
//return to top and test x<10 again | |
}//continue program | |
document.write('<h4>Dates</h4>'); |
<?php | |
/** | |
* Returns the age based on the date of birth. | |
* | |
* @return int | |
*/ | |
function getAgeFromDob() | |
{ | |
$dob = new \DateTime('1980-01-01'); | |
$dob = $dob->getTimestamp(); |
$ sudo apt-get install mcrypt php5-mcrypt | |
$ sudo php5enmod mcrypt | |
$ sudo service nginx restart |
; top-most EditorConfig file | |
root = true | |
; Unix-style newlines | |
[*] | |
end_of_line = LF | |
[*.php] | |
indent_style = space | |
indent_size = 4 |
use-sort: | |
group: | |
- _main | |
- Mmoreram | |
group-type: each | |
sort-type: alph | |
sort-direction: asc | |
header: | | |
/* |
// PHP-CS-Fixer settings | |
// Fix the issues on save | |
"php_cs_fixer_on_save": true, | |
// Show the quick panel | |
"php_cs_fixer_show_quick_panel": true, | |
// Path to where you have the php-cs-fixer installed | |
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer", |