Create new migration script:
php artisan make:migration add_api_token --table=users
<?php | |
if (! function_exists('routeIsActive')) { | |
function routeIsActive($routes, $print = 'active'){ | |
if (is_array($routes)) { | |
foreach ($routes as $route) { | |
if(Route::is($route)){ | |
return $print; | |
} | |
} |
<form action=""> | |
<div> | |
<label for="cc">Credit Card</label> | |
<!-- Set via HTML --> | |
<input id="cc" type="text" data-inputmask="'mask': '9999 9999 9999 9999'" /> | |
</div> | |
<div> | |
<label for="date">Date</label> |
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<body> | |
<div class="phone-field"> | |
(<input class="phone-input" name="phone-input" type="tel" size="1" maxlength="1" placeholder="5" autofocus="autofocus"> | |
<input class="phone-input" name="phone-input" type="tel" size="1" maxlength="1" placeholder="5"> | |
<input class="phone-input" name="phone-input" type="tel" size="1" maxlength="1" placeholder="5">) | |
<input class="phone-input" name="phone-input" type="tel" size="1" maxlength="1" placeholder="5"> | |
<input class="phone-input" name="phone-input" type="tel" size="1" maxlength="1" placeholder="5"> | |
<input class="phone-input" name="phone-input" type="tel" size="1" maxlength="1" placeholder="5"> - |
Feature branch | |
// ถ้าเราอยู่ใน develop แล้วก็สั่ง | |
git checkout -b feature/hello-world | |
// หรือถ้าอยู่ branch อื่นๆ ก็พิมพ์ตามคำสั่งด้านล่าง | |
git checkout -b feature/hello-world develop | |
————————————————————————— | |
Release branch | |
// ถ้าเราอยู่ใน develop แล้วก็สั่ง | |
git checkout -b realease/release-0.2 |
pragma solidity ^0.4.18; | |
contract SimpleContract { | |
uint balance; | |
constructor() public { | |
// Set initial balance as 1000 | |
balance = 1000; | |
} | |
function setBalance(uint newBalance) public { |
contract Ownable { | |
address public owner; | |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); | |
function Ownable() public { | |
owner = msg.sender; | |
} | |
modifier onlyOwner() { |
# installed with composer | |
composer require s-ichikawa/laravel-sendgrid-driver | |
# Add the sendgrid service provider in config/app.php: | |
'providers' => [ | |
Sichikawa\LaravelSendgridDriver\SendgridTransportServiceProvider::class | |
]; | |
# Config on .env | |
MAIL_DRIVER=sendgrid |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Schema; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
[ | |
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["command+shift+b"], "command": "reindent" , "args": {"single_line": false}}, | |
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } } | |
] |