This file contains hidden or 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\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\DB; | |
| use Exception; | |
| //inspired from https://www.techspeak.dev/2018/09/30/laravel-creating-the-database-using-artisan-commands.html | |
| class DBCreate extends Command |
This file contains hidden or 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
| echo "hai sayang"; |
This file contains hidden or 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\Http\Repository; | |
| use Illuminate\Database\Eloquent\Model; | |
| class BaseRepository | |
| { |
This file contains hidden or 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
| // REFERENCE UNICODE TABLES: | |
| // http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml | |
| // http://www.tamasoft.co.jp/en/general-info/unicode.html | |
| // | |
| // TEST EDITOR: | |
| // http://www.gethifi.com/tools/regex | |
| // | |
| // UNICODE RANGE : DESCRIPTION | |
| // | |
| // 3000-303F : punctuation |
This file contains hidden or 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
| Regex for matching ALL Japanese common & uncommon Kanji (4e00 β 9fcf) ~ The Big Kahuna! | |
| ([δΈ-ιΎ―]) | |
| Regex for matching Hirgana or Katakana | |
| ([γ-γγ‘-γ³]) | |
| Regex for matching Non-Hirgana or Non-Katakana | |
| ([^γ-γγ‘-γ³]) | |
| Regex for matching Hirgana or Katakana or basic punctuation (γγβ) |