DB::enableQueryLog();
dd(DB::getQueryLog()); #output last executed queries
DB::table('users')->toSql() #show the generated sql statement
DB::table('users')->getQuery()->wheres #show wheres conditions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var minify = require('gulp-minify-css'); | |
var uglify = require('gulp-uglify'); | |
var concat = require('gulp-concat'); | |
var plumber = require('gulp-plumber'); | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use Collective\Html\FormBuilder; | |
class AjaxFormBuilder extends FormBuilder { | |
protected $form_id; | |
protected $readonly = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Country List in Arabic | source: https://github.com/umpirsky/country-list -- > | |
<select name="country"> | |
<option value="AW">آروبا</option> | |
<option value="AZ">أذربيجان</option> | |
<option value="AM">أرمينيا</option> | |
<option value="ES">أسبانيا</option> | |
<option value="AU">أستراليا</option> | |
<option value="AF">أفغانستان</option> | |
<option value="AL">ألبانيا</option> | |
<option value="DE">ألمانيا</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Services; | |
use Exception; | |
use Illuminate\Contracts\Encryption\DecryptException; | |
use Illuminate\Contracts\Encryption\Encrypter as EncrypterContract; | |
class Encrypter implements EncrypterContract { | |
/** | |
* The encryption key. |
A Pen by Mohit Aneja on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PHPSTORM_META { | |
/** | |
* PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
* Generated on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ |
Copy RouteListFilterCommand.php
to app/Console/Commands
Edit app/Console/Kernel.php
, then add 'App\Console\Commands\RouteFilterCommand',
to $commands
, like so
protected $commands = [
'App\Console\Commands\Inspire',
'App\Console\Commands\RouteFilterCommand',
];
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- General | |
[ ] The code works | |
[ ] The code is easy to understand | |
[ ] Follows coding conventions | |
[ ] Names are simple and if possible short | |
[ ] Names are spelt correctly | |
[ ] Names contain units where applicable | |
[ ] Enums are used instead of int constants where applicable | |
[ ] There are no usages of 'magic numbers' | |
[ ] All variables are in the smallest scope possible |