Skip to content

Instantly share code, notes, and snippets.

View hankz1108's full-sized avatar

Hankz hankz1108

View GitHub Profile
@hankz1108
hankz1108 / auth.php
Created February 1, 2024 01:47
Laravel的繁體中文(臺灣)本地化設定文件(in: resources/lang/zh_TW)
<?php
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
@hankz1108
hankz1108 / changelog.config.js
Last active May 27, 2024 16:12
git-cz config file with gitmoji and chniese description
/**
* source: https://gist.github.com/hankz1108/b0862d481c714e99067b06c2ca401510
* package: https://github.com/stanlindsey/git-cz
* gitmoji: https://github.com/carloscuesta/gitmoji/?tab=readme-ov-file
* translate by: https://israynotarray.com/git/20221115/721294310/
*/
module.exports = {
disableEmoji: false, // 是否禁用 emoji
format: '{type}{scope}: {emoji} {subject}', // Commit 訊息的格式
list: ['test', 'feat', 'fix', 'chore', 'docs', 'refactor', 'style', 'ci', 'perf'], // Commit 類型的清單
@hankz1108
hankz1108 / .php-cs-fixer.php
Last active May 7, 2024 07:25
My Laravel PHP CS Fixer Configuration
<?php
$rules = [
// 繼承Symfony的規則
'@Symfony' => true,
// 確保陣列中的逗號後只有一個空格
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
// 強制轉型運算子的右側沒有空格