Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace App;
- use Illuminate\Database\Eloquent\Model;
- class Barangs extends Model {
- //
- public $timestamps = false;
- protected $table = 'barangs';
- protected $fillable = [ 'kd_barang', 'nama_barang', 'spesifikasi', 'label', 'created_at' ];
- public function kondisi()
- {
- return $this->belongsTo('App\Kondisi', 'kd_kondisi', 'kd_kondisi');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement