<?php

namespace App;
use Session;
use Illuminate\Database\Eloquent\Model;

class Salle extends Model
{
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $connection;
    public function __construct(){
        $this->connection = session::get('gestjury_database') ;
    }

    protected $table = 'gestjury_salle';

    /**
    * The database primary key value.
    *
    * @var string
    */
    protected $primaryKey = 'id';

    /**
     * Attributes that should be mass-assignable.
     *
     * @var array
     */
    protected $fillable = ['nom', 'description'];

    
}
