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 | |
/* | |
|---------------------------------------------------- | |
| Routing sytem | | |
|---------------------------------------------------- | |
*/ | |
/** | |
* Route version without controller (example) |
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 | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Mail Driver | |
|-------------------------------------------------------------------------- | |
| | |
| Laravel supports both SMTP and PHP's "mail" function as drivers for the |
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
-- phpMyAdmin SQL Dump | |
-- version 4.7.4 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: 09 Feb 2018 pada 10.51 | |
-- Versi Server: 10.1.26-MariaDB | |
-- PHP Version: 7.1.9 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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 | |
return [ | |
'settings' => [ | |
'displayErrorDetails' => true, | |
'db' => [ | |
'driver' => 'mysql', |
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 | |
/* | |
|---------------------------------------------------- | |
| Container | | |
|---------------------------------------------------- | |
*/ | |
$container = $app->getContainer(); |
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\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class ModelTableTest extends Model { | |
protected $table = 'tabel_test'; | |
protected $fillable = [ | |
'id', | |
'title', |
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\Controllers; | |
use App\Models\ModelTableTest as CRUD; | |
class TestController extends Controller { | |
public function index($request, $response) { | |
$response->getBody()->write("Hello Slim With Controller"); |
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 | |
/* | |
|---------------------------------------------------- | |
| Routing sytem | | |
|---------------------------------------------------- | |
*/ | |
/** | |
* Route version without controller (example) |
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
{ | |
"editor.renderControlCharacters": false, | |
"editor.renderWhitespace": "none", | |
"editor.fontSize": 18, | |
"editor.lineHeight": 24, | |
"editor.wordWrap": "on", | |
// "editor.wrappingIndent": "same", | |
// "editor.wordWrapColumn": 100, | |
"editor.detectIndentation": false, |
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 | |
class CollectionModel | |
{ | |
private $tipe; | |
private $mata_uang; | |
private $total_origin; | |
private $total_idr; | |
public function __construct($tipe, $mata_uang, $total_origin, $total_idr) |