2019/01/31
#laravue Short LT
{
"require": {
"asimlqt/php-google-spreadsheet-client": "3.0.*",
"aws/aws-sdk-php-laravel": "~3.0",
"doctrine/dbal": "^2.5",
"google/apiclient": "^2.0",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0",
"league/flysystem-aws-s3-v3": "^1.0"
},
}
$gift = new Gift();
$gift->gift_type = $request->input('gift_type');
$gift->relation = $request->input('relation');
$gift->relation_id = $request->input('relation_id');
$gift->quantity = $request->input('quantity');
$gift->description = $request->input('description');
array_chunk(
explode(',', $user_codes),
self::USERS_LIMIT,
true
);
#QUEUE_DRIVER=sync
QUEUE_DRIVER=database
// php artisan make:job UpdateGift
try {
UpdateGift::dispatch();
} catch (Exception $e) {
//
}
getContents(categoryId) {
return _.find(this.categories, function(c) {
return c.id === categoryId
})
}
getContents(categoryId) {
return this.categories.find(category => {
return c.id === categoryId
})
}
{
dependencies: {
"babel-core": "^6.26.3",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
}
}
{
"presets": [
"env",
"stage-3"
],
"plugins": [
[
"transform-runtime",
{
"polyfill": false,
"regenerator": true
}
]
]
}