- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Support\Facades\DB;
- class Channel extends Model
- {
- protected $table = 'channel';
- public static function detail($id) {
- $channel = DB::table('channel')->where('channel_id', $id)->first();
- return $channel;
- }
- }
|