<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class LokasiModel extends Model
{
    use HasFactory;
    protected $table = 'lokasi';
    protected $primaryKey = 'id_lokasi';
    protected $fillable = [
        'nama',
        'lokasi',
        'jenis',
    ];

    public static function allLokasi()
    {
        return DB::table('lokasi')->get();
    }
}
