- package
- cara bikin package
- design pattern
- event listener
- queue
- gate vs policy
- API best practice
- endpoint (sebagian sudah dibahas ketika bikin routes)
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 | |
public function store(Request $request) | |
{ | |
// 1. cek hak akses | |
// Laravel sudah menyediakan fungsinya, seharusnya tinggal dipanggil | |
$this->authorize('voucher.add.store'); | |
// 2. membuat direktori, sepertinya bisa dipakai di tempat lain, jadi lebih baik dijadikan helper | |
create_directory(public_path(date('Ymd'))); |
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
let mix = require('laravel-mix'); | |
require('dotenv').config(); | |
const PROXY_URL = process.env.APP_URL || 'localhost'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| |
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
# Dump of table ek_application | |
# ------------------------------------------------------------ | |
DROP TABLE IF EXISTS `ek_application`; | |
CREATE TABLE `ek_application` ( | |
`appl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`appl_reason` varchar(5000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | |
`appl_type` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'see Ekompaun\\Systemconfig\\Enum\\AppealType', | |
`appl_channel` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'see Ekompaun\\Systemconfig\\Enum\\AppealChannel', |
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
brew install imagemagick | |
pecl install imagick |
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; | |
class SampleCommand extends Command | |
{ | |
/** | |
* The name and signature of the console 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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$HOME/.composer/vendor/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/uyab/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
- Buat sebuah field baru di camunda_form dengan field_type = "multirow"
- Edit kolom meta, tambahkan value berikut:
{"form":"nama_form"}
- Buat sebuah file config baru di
config/workflow/forms/nama_form.php
- Isi config file sesuai standard semantic-form, contohnya bisa dilihat di https://gist.github.com/uyab/7a1bbe0fb676027b146eef824d9ffa94
- Buat sebuah tabel baru untuk menyimpan field-field dari multirow tersebut
File config/workflow/forms/kronologi.php
php
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 | |
// config/laravolt/auto-crud.php | |
return [ | |
'resources' => [ | |
'user' => [ | |
'label' => 'User', | |
'model' => \App\Models\User::class, | |
'schema' => [ |
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 | |
use Carbon\Carbon; | |
// Menggenerate array of months: Januari, Februari, Maret, dst | |
$months = []; | |
foreach (range(1, 12) as $monthIndex) { | |
$months[$monthIndex] = Carbon::createFromFormat('m', $monthIndex)->translatedFormat('F'); | |
} |
OlderNewer