Arrays should be defined using []
instead of the old way: array()
.
- Form variables should be
snake_case
. - Database tables and columns should be
snake_case
.
<?php | |
// This file is belonged to a module called x. | |
// It's all devoted to the drush commands related to the module. | |
/** | |
* Define the drush commands' interface | |
*/ | |
function x_drush_command() | |
{ |
<?php | |
public function generate_password($length = 8) | |
{ | |
$sets = array(); | |
$sets[] = 'abcdefghjkmnpqrstuvwxyz'; | |
$sets[] = 'ABCDEFGHJKMNPQRSTUVWXYZ'; | |
$sets[] = '23456789'; | |
$sets[] = '!@#$^*()_.-='; | |
$all = ''; |
APP_NAME=Laravel | |
APP_ENV=local | |
APP_KEY=base64:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= | |
APP_DEBUG=true | |
APP_URL=http://path.to.domain.com | |
LOG_CHANNEL=file | |
LOG_LEVEL=debug | |
DB_CONNECTION=mysql |
$ ssh -i ~/ssh-private-keys/private-key.ppk root@1.2.3.4 |
Web Push Notification: https://web-push-book.gauntface.com/.