init kuitansi

pull/1/head
Aji Kamaludin 5 years ago
parent 2c9d6e449d
commit 198a5ab94f
No known key found for this signature in database
GPG Key ID: 23E2BDC458317AF8

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class KuitansiController extends Controller
{
public function index()
{
return view('kuitansi.index');
}
}

@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Kuitansi extends Model
{
protected $table = 'kuitansi';
protected $fillable = [
'invoice',
'items',
'total'
];
}

@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateKuitansi extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('kuitansi', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('invoice');
$table->string('items');
$table->double('total');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('kuitansi');
}
}
Loading…
Cancel
Save