register customer
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Pekerjaan;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PekerjaanController extends Controller
|
||||
{
|
||||
public function showAllPekerjaan(){
|
||||
$kerja = Pekerjaan::on('mysql7')->get();
|
||||
|
||||
return response()->json($kerja);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\TujuanGadai;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class TujuanGadaiController extends Controller
|
||||
{
|
||||
public function showAllTujuanGadai(){
|
||||
$tujuan = TujuanGadai::on('mysql7')->get();
|
||||
|
||||
return response()->json($tujuan);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Pekerjaan extends Model
|
||||
{
|
||||
protected $table = 'pekerjaan';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'kodkerja','keterangan'
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
// protected $hidden = [];
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TujuanGadai extends Model
|
||||
{
|
||||
protected $table = 'tujuan_gadai';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'keterangan'
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
// protected $hidden = [];
|
||||
}
|
||||
Reference in New Issue
Block a user