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
In ERD shown that the table is for storing currencies when then currencies is not available in the database | |
To minimize the call for the currencies, I have just call `USD_MYR` and `USD_EURO` because and I can get the inverse of | |
the currency rate by ` 1 / currency_rate `. Therefore I would get the inverse by just using one free API from the | |
currency API. | |
When I have check the database do not have the currency that I need, I will call the API and store the rates with the inverse | |
of the rates into the database. Whenever user click calculate, I will check whether the database got the rates, if not will | |
call the API. |
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
{ | |
"emmet.triggerExpansionOnTab": true, | |
"editor.formatOnSave": false, | |
"editor.tabSize": 2, | |
} |
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
# Change to the project directory | |
cd /var/www/html/pawnbroker | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
sudo git pull |
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 | |
use PhpCsFixer\Finder; | |
$finder = Finder::create() | |
->in([ | |
__DIR__.'/app', | |
__DIR__.'/config', | |
__DIR__.'/database', | |
__DIR__.'/resources', |
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
phpv() { | |
valet stop | |
brew unlink php@7.0 | |
brew unlink php@7.2 | |
brew unlink php | |
brew link --force --overwrite $1 | |
brew services stop php@7.0 | |
brew services stop php@7.2 | |
brew services stop php | |
brew services start $1 |
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
const defaultTheme = require('tailwindcss/defaultTheme') | |
module.exports = { | |
purge: [ | |
'./storage/frameworks/views/*.php', | |
'./resources/views/**/*.blade.php' | |
], | |
theme: { | |
extend: { | |
colors: { |
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
# Change to the project directory | |
cd /var/www/html/analytic | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
sudo git pull |