krgm.so-manager-dev.com/app/Models/PriceB.php
ou.zaikou e1629913bd 初回コミット
Signed-off-by:  ou.zaikou<caihaoweng@gmail.com>
2025-08-21 23:09:40 +09:00

26 lines
592 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PriceB extends Model
{
protected $table = 'price_b';
protected $primaryKey = 'price_parkplaceid';
public $timestamps = true;
protected $fillable = [
'park_id', 'price_ptypeid', 'user_categoryid', 'price_month',
'price', 'prine_name', 'psection_id', 'pplace_id', 'operator_id',
];
/**
* 指定駐輪場IDの料金データ取得スコープ
*/
public function scopeForPark($query, $parkId)
{
return $query->where('park_id', $parkId);
}
}