<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Competencies extends Model
{
    // The table associated with the model.
    protected $table = 'competencies'; // This is optional if the table name is plural of the model name

    // The primary key associated with the table.
    protected $primaryKey = 'id'; // This is optional if the primary key is 'id'

    // Indicates if the model should be timestamped.
    public $timestamps = false; // Set to false if you don't have created_at and updated_at columns

    public function getAllCompetencies(){
        $Competencies = DB::table('competencies')->get();
        return $Competencies;
    }
}