Recommended Editor:
- Sublime Text (http://www.sublimetext.com/)
- Atom.io (https://atom.io/)
From here on we'll use "edit" to denote the command that's meant to open the file in the editor. Replace "edit" with "subl" or "atom" as needed.
Recommended Editor:
From here on we'll use "edit" to denote the command that's meant to open the file in the editor. Replace "edit" with "subl" or "atom" as needed.
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
# synclient TouchpadOff=1 | |
ref : | |
http://askubuntu.com/questions/65951/how-to-disable-the-touchpad |
server { | |
listen 80; | |
root /home/nginx/domains/default/public_html; | |
# Add index.php to the list if you are using PHP | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name _; |
{ | |
// Do you want to run the phpcs checker? | |
"phpcs_sniffer_run": false, | |
// Execute the sniffer on file save | |
"phpcs_command_on_save": false, | |
"phpcs_executable_path": "/usr/local/bin/phpcs", | |
// Fix the issues on save |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |
:%s/find_text/replace_text/g
# Uuid | |
### install | |
``` | |
composer require "webpatser/laravel-uuid:2.*" | |
``` | |
### add alias | |
Tambahkan pada app.php > alias | |
``` |
$table->timestamps()->default(DB::raw('CURRENT_TIMESTAMP')); | |
if fail, use : | |
$table->timestamp(’something_at')->default(DB::raw('CURRENT_TIMESTAMP')); |
# Handle Error Laravel | |
### ReflectionException Class User does not exist | |
add to composer.json directory of class | |
``` | |
"autoload": { | |
"classmap": [ | |
"database", | |
"app/Library/", | |
"app/Models/", |