Create new migration script:
php artisan make:migration add_api_token --table=users| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); |
| # 1. Navigate to your repository's directory in a terminal window using the command cd path/to/your/repository. | |
| # 2. Run the following command (which modifies the fetch URL) from your terminal window: | |
| # for SSH | |
| git remote set-url origin git@bitbucket.org:{new team or account name}/{repository name}.git | |
| # for HTTPS | |
| git remote set-url origin https://{username}@bitbucket.org/{new team or account name}/{repository name}.git | |
| # 3. Run the following command (which modifies the push URL) from your terminal window: | |
| # for SSH |
| SELECT DATE(latest_update) DateOnly FROM users GROUP BY DateOnly LIMIT 10 |
| #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0-fpm \ | |
| php7.0-cli \ | |
| php7.0-curl \ | |
| php7.0-gd \ |
| /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | |
| ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime |
| rm /Users/[Your Mac]/Library/Preferences/SmartSVN/9.2/passwords |
| [ | |
| { "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 } } | |
| ] |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Support\Facades\Schema; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** |
| # 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 |