Skip to content

Commit

Permalink
Fixing & Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Ariawan committed May 15, 2021
1 parent e4827c3 commit d58fed7
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 76 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Pada superframework Anda tidak membutuhkan mendeklarasikan secara manual pada se
}

// Atau
if(Request_method_is_get()) {
if(request_method_is_get()) {
// Lanjut eksekusi setelah get
}
}
Expand Down
26 changes: 26 additions & 0 deletions app/Migrations/Databases/20210515165636_create_settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class CreateSettings extends AbstractMigration
{
/**
* Change Method.
*
* Write your reversible migrations using this method.
*
* More information on writing migrations is available here:
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
*
* Remember to call "create()" or "update()" and NOT "save()" when working
* with the Table class.
*/
public function change(): void
{
$table = $this->table("settings");
$table->addColumn("name", "string", ['limit'=>255]);
$table->addColumn("content","text",['null'=>true]);
$table->create();
}
}
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
"files": [
"app/Helpers/General.php"
]
},
"scripts": {
"post-autoload-dump": [
"@php super package:discover"
]
}
}
Loading

0 comments on commit d58fed7

Please sign in to comment.