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 | |
namespace App\Http\Controllers; | |
use Illuminate\Foundation\Bus\DispatchesJobs; | |
use Illuminate\Routing\Controller as BaseController; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use Illuminate\Validation\Validator; |
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
$(function () { | |
"use strict"; | |
jsGrid.setDefaults({ | |
tableClass: "jsgrid-table table table-striped table-hover" | |
}); | |
jsGrid.setDefaults("text", { | |
_createTextBox: function() { | |
return $("<input>").attr("type", "text").attr("class", "form-control input-sm") |
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 | |
/** | |
* Created by PhpStorm. | |
* User: hafiq | |
* Date: 21/04/2019 | |
* Time: 7:17 PM | |
*/ | |
namespace App\Http\Traits; |
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
#!/bin/sh | |
if ! type "jq" > /dev/null; then | |
echo "Please install jq command to commit. run command 'brew install jq'" | |
exit 1 | |
fi | |
currentVersion=$(jq .version .version.json | bc -l) | |
currentBuildNumber=$(jq .build_number .version.json | bc -l) |
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
composer install | |
# Change folder directory permission | |
sudo find project_folder -type f -exec chmod 664 {} \; | |
sudo find project_folder -type d -exec chmod 775 {} \; | |
# Change laravel directory permission | |
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache |