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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"files.autoSave": "onFocusChange", | |
"editor.tabSize": 2, | |
"eslint.packageManager": "yarn", | |
"eslint.validate": [ | |
"javascript", | |
"html", | |
"javascriptreact", | |
{ |
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
Tambahkan fungsi berikut di file `PhpOffice\PhpWord\TemplateProcessor` | |
// dev | |
public function setValueAdvanced($search_replace) | |
{ | |
foreach ($this->tempDocumentHeaders as $index => $headerXML) { | |
$this->tempDocumentHeaders[$index] = $this->setValueForPartAdvanced($this->tempDocumentHeaders[$index], $search_replace); | |
} |
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
RewriteEngine on | |
RewriteCond $1 !^(index\.php|images|robots\.txt|assets) | |
RewriteRule ^(.*)$ http://localhost/client/dinas-simpak/index.php/$1 [L] |
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 | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
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
rm -rf node_modules | |
rm package-lock.json | |
npm cache clear --force | |
npm install |
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
public static function listPengawasArray() | |
{ | |
$array_pengawas = self::where('user_id', auth()->user()->id)->get(['pengawas_id'])->mode('pengawas_id'); | |
} | |
// response | |
array:2 [▼ | |
0 => 1 | |
1 => 2 | |
] |
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
# MEMPERBAIKI ERRO TOKEN MISMATCH KETIKA LOGIN | |
chmod 777 ./storage/framework/sessions | |
# ROUTING PUBLIC DIREKTORY LARAVEL TIDAK BISA DIRUBAH | |
# REDIRECT OTOMATIS KE FOLDER PUBLIC | |
BUAT FILE .htaccess di root folder |
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
$("[data-dismiss=modal]").trigger({ type: "click" }); |
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
Errors accours when run php artisan dev:reset on `UserSeeder:attachPermission`. | |
Make it solved with `config/database.php` like this | |
```php | |
'charset' => 'utf8', | |
'collation' => 'utf8_unicode_ci', | |
'prefix' => '', | |
'strict' => true, | |
'strict' => false, | |
'engine' => null, |
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 Illuminate\Http\Request; | |
/* | |
|-------------------------------------------------------------------------- | |
| API Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register API routes for your application. These |
NewerOlder