This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
#!/usr/bin/env php | |
<?php | |
// Left associative ternary. | |
// Output: T | |
echo (true ? 'True' : false ? 'T' : 'F') . "\n"; | |
// This is essentially the same as above. | |
// Output: T | |
echo ((true ? 'True' : false) ? 'T' : 'F') . "\n"; |
<?php | |
$prime = function($num) { | |
if ($num === 1) { | |
return false; | |
} | |
if ($num === 2) { | |
return true; | |
} |
This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
public function get_checkin_poll() | |
{ | |
$filepath = 'storage/work/checkin_poll_' . Auth::user()->id; | |
$last_cycle = File::get($filepath); | |
$break = false; | |
$thread = uniqid(); | |
// if last cycle was > 60 secs continue |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
<?php | |
class SecureSessionHandler extends SessionHandler { | |
protected $key, $name, $cookie; | |
public function __construct($key, $name = 'MY_SESSION', $cookie = []) | |
{ | |
$this->key = $key; | |
$this->name = $name; |
It seems there is some problems between Vagrant 1.6.2 and VirtualBox 4.3.12 (the latest at the time or writing this),
switching back to VirutalBox 4.3.6 or VirtualBox 4.3.8 seems to eliminate the problem.
update 1: Try both Vagrant 1.6.2 and VirtualBox 4.3.12 on Mac and they seem to work fine!
update 2: You need to enable Virtual Machine option in your BIOS to make VirtualBox work as expected. Saw someone mention about this in Laravel forum about this and it is true.
Also, Vagrant version should be 1.6.2.
<?php | |
// located in the /app/filters.php | |
/* some original code */ | |
Route::filter('statistics.auth.basic', function() { | |
$user = Request::getUser(); | |
$password = Request::getPassword(); | |
if (!App::environment('development') && |
https://github.com/a1phanumeric/PHP-MySQL-Class | |
https://github.com/aaronpk/Google-Voice-PHP-API | |
https://github.com/abhinavsingh/JAXL | |
https://github.com/abraham/twitteroauth | |
https://github.com/achingbrain/php5-akismet | |
https://github.com/adamgriffiths/ag-auth | |
https://github.com/adlawson/vfs.php | |
https://github.com/adoy/PHP-OAuth2 | |
https://github.com/aerialls/Plum | |
https://github.com/afreiday/php-waveform-png |
#Волшебный Eloquent. ##Дисклеймер Данный материал абсолютно не претендует на уникальность, и не является попыткой открыть для кого-то Америку. Все ниже изложенное (прямо или косвенно) можно легко почерпнуть из официального мануала. А для чего же оно тогда написано? Попытка подать информацию в чуть более развернутом виде, систематезировать собственные знания, и снять острый приступ графоманства. Если это вдруг окажется кому-то полезным, то мне будет приятно.
##Введение
TL;DR
Так уж сложилось, что слоняясь по "интернетам", в поисках сообщников в ограблении банка единомышленников в изучении framework'a Laravel, я забрел в чат хоть и праздно прозябающего, но (стараниями Алексея) живого и дружелюбного Cообщества, и плотно там осел. А через какое-то время заметил, что отвечаю на чьи-то вопросы гораздо чаще, чем задаю их. Хотя мой замысел был иной: изначально, я хотел добраться до "знающих людей" и, как вампир, высосать через чат все и