modified: SRC/app/Http/Controllers/GameController.php

modified:   SRC/app/Models/ListeOeuvre.php
	modified:   SRC/resources/views/home.blade.php
	modified:   SRC/resources/views/referent_games.blade.php
This commit is contained in:
Malibu
2015-03-10 15:27:36 +01:00
parent f0fcd0da22
commit 54b701eeed
4 changed files with 29 additions and 30 deletions

View File

@ -24,4 +24,14 @@ class ListeOeuvre extends Model {
$idUser = Auth::user()->id;
return $query->where('iduser', $idUser);
}
public function scopeOfUser($query, $idUser)
{
return $query->where('iduser', $idUser);
}
public function scopeActiveListOeuvre($query)
{
return $query->where('etat', 1);
}
}