技術情報
- 2022年08月02日
- 技術情報
Top 5 Node JS Frameworks
Today I would like to share about top 5 Node JS frameworks. Let’s take a look.
1. express.js
Express.js is the most popular Node.js backend framework. It is mainly used for building backend applications and REST APIs.
2. nest.js
Nest.js is a powerful framework for building a scalable backend applications. It supports TypeScript fully. The architecture is clear and there are good documentations.
3. fastify.js
Fastify.js is a web framework and provides one of the fastest developer experiences with good optimizations.
4. sails.js
Sails.js is a backend framework that uses model-view-controller methodology for developing Node JS applications and APIs. It is mostly used for designing and developing custom enterprise level.
5. socket.io
Socket.io is a JavaScript library that is used for real-time even-based communications. It is a good framework to use for real-time messaging or broadcasting applications.
This is all for now. Hope you enjoy that.
By Asahi
waithaw at 2022年08月02日 10:00:00
- 2022年07月29日
- 技術情報
ブレードで@.jsディレクティブを使用してPHPからJavascriptの値に変換する。
今回は、laravelのTipsを紹介します。
@.js は、PHP の値を Javascript に変換できます。
また、laravelアプリケーションのとこかの場所でこれを行いたい場合は、facadeを直接呼び出すことも可能です。
use Illuminate\Support\Js;
$data = ['name' => 'mg mg'];
Js::from($data);
Js::from(collect($data));
//blade 直接
@js($data);
ということで、今回はこれで終わります。
金曜担当 – Ami
asahi at 2022年07月29日 10:00:00
- 2022年07月28日
- 技術情報
Emmetの使用(1)
nishida at 2022年07月28日 10:00:00
- 2022年07月26日
- 技術情報
5 Tricks with Laravel Timestamps
Today, I would like to share some tricks for Laravel Timestamps. Let’s take a look.
1. Changing the Timestamps Column names
Sometimes, you might have to change the timestamps column names : created_at and updated_at. In that case, you can set them in the model as follows.
class Product extends Model{
const CREATED_AT = ‘start_time’;
const UPDATED_AT = ‘modify_time’;
}
2. Disabling the timestamps that are filled automatically by Laravel
You can disable the automatic filling timestamps in Eloquent model as follows.
class Product extends Model{
public $timestamps = FALSE;
}
3. Using shortcuts for order by timestamps
You can use latest() instead of orderBy(‘created_at’, ‘desc’).
You can use oldest() instead of orderBy(‘created_at’, ‘asc’).
4. Updating data without updating updated_at
In some cases, you can update the data without touching ‘updated_at’ column as follows.
$product = Product::find(1);
$product→name = ‘product1’;
$product→timestamps = false;
$product→save();
5. Updating only ‘updated_at’ with short way
You can update only ‘updated_at’ as following.
Use
$product→touch();
instead of:
$product→update([‘updated_at’=>now()]);
This is all for now. Hope you enjoy that.
By Asahi
waithaw at 2022年07月26日 10:00:00
Google Wallet
The new Google Wallet app is now available to all customers. The official release of Google Wallet is the latest step in the long history of variations of Google’s payment apps. The company created Google Pay in 2018 by combining Google Wallet and Android Pay.
Currently, Google is announcing the return of its wallet at the Google I / O event in May to create a dedicated home for payment cards, tickets, government IDs, vaccination proofs, and even car keys. Split again. Users can use the app to pay for vendors that use Google Pay.
You can download Google Wallet from the Google Play Store. The user must be running Android 5.2 or later and have a Google account and a valid phone number. From there, you’ll be able to add different cards to your Google Wallet. If you already have your card connected to the Google Play Store or YouTube, your cards will be loaded.
You can also checkout the youtube video here.
Yuuma
yuuma at 2022年07月25日 10:00:00