echo date('Y-m-d H:i:s', strtotime('+1 year'));
// 假設執行日期 2024-12-25 11:00
// ouput: 2025-12-25 11:00
This file contains 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\Commons; | |
use Illuminate\Support\Facades\Storage; | |
class CsvFileEditor | |
{ | |
/** @var string csv檔案路徑 */ | |
public $filepath; |
This file contains 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
use DEMO; | |
LOAD DATA INFILE '/var/lib/mysql-files/users.csv' | |
INTO TABLE bankList | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' | |
IGNORE 1 LINES | |
(id, email, password, firstName, lastName, cellPhone, created_at, updated_at); |
This file contains 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
name: Create Version Tag on PR Merge | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
create_tag: | |
runs-on: ubuntu-latest |
This file contains 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
/** | |
* First we will load all of this project's JavaScript dependencies which | |
* includes Vue and other libraries. It is a great starting point when | |
* building robust, powerful web applications using Vue and Laravel. | |
*/ | |
require('./bootstrap'); | |
// window.Vue = require('vue').default; | |
// 改為 |
This file contains 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
npm install -D vue@next | |
npm install -D @vue/compiler-sfc | |
npm install vue-loader@^16.2.0 --save-dev --legacy-peer-deps | |
npm run dev |
This file contains 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
demo-app | |
|- resources | |
| |- js | |
| | |- components | |
| | |- ExampleComponent.vue | |
| |- app.js | |
|- package.json // 加入 vue, vue-loader, vue-template-compiler | |
|- webpack.mix.js // 加入 .vue() |
This file contains 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
composer create-project laravel/laravel demo-app "8.6.11" | |
cd demo-app | |
composer require laravel/ui --dev | |
php artisan ui vue |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
NewerOlder