1234567891011121314151617181920212223242526 |
- <?php
-
- namespace App\Model\Data;
-
- use Illuminate\Database\Eloquent\Model;
-
- class StockLogs extends Model
- {
-
-
- protected $table = 'stock_logs';
- protected $fillable = [
- 'user_id',
- 'log',
- 'quantity_kantong',
- 'is_stock_in',
- 'is_stock_out',
- ];
-
-
-
- public function user()
- {
- return $this->belongsTo('App\User', 'user_id', 'id');
- }
- }
|