1234567891011121314151617 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use DB;
- class CustomerInvoiceOrders extends Model
- {
- protected $table = 'customer_invoice_orders';
- public $timestamps = false;
- protected static $unguarded = true;
- public static function getOrderList($invoiceId) {
- return self::query()->where('enable', 1)->where('inv_id', $invoiceId)->pluck('order_id')->all();
- }
- }
|