Mar 272016This isn’t a very well documented change, so I thought a simple post that Google may find for another confused engineer might Help. Apparently byebug is no longer being maintained so you simply need to update to “pry-byebug”
Feb 182016 add the following code to your main layout, and continue making your ajax calls normally:
<meta name="csrf-token" content="{{ csrf_token() }}" />
Feb 162016I'm trying to port over to PHPStorm from Sublime to improve my workflow. However, I am having trouble getting the ide-helper to work in PHPStorm to remove all the undefined class and namespaces error.
Feb 152016$someVariable = Input::get("some_variable");
$results = DB::select( DB::raw("SELECT * FROM some_table WHERE some_col = '$someVariable'") );
Feb 152016Триггер — это хранимая процедура особого типа, которую пользователь не вызывает непосредственно а вызывается исполнением не которых событий таких как вставленные, удаление, обновление данных в строке.
в MySQL > 5.0.2
Feb 112016You can exclude URIs from CSRF by simply adding them to the $except property of the VerifyCsrfToken middleware:
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'api/*',
];
}