菜谱项目

Channel.php 306B

12345678910111213141516
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Support\Facades\DB;
  5. class Channel extends Model
  6. {
  7. protected $table = 'channel';
  8. public static function detail($id) {
  9. $channel = DB::table('channel')->where('channel_id', $id)->first();
  10. return $channel;
  11. }
  12. }