Skip to content

Commit

Permalink
Merge pull request #42 from alecostaweb/issue_41
Browse files Browse the repository at this point in the history
Lista somente lugares Pró-Aluno
  • Loading branch information
alecostaweb authored Dec 4, 2023
2 parents abee60e + 6098962 commit c02f370
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Http/Controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
class IndexController extends Controller
{
public function index()
{
{
return view('index',[
'places' => Place::all(),
// Retorna somente os lugares com para monitores das salas Pró-Aluno ou Próaluno
'places' => Place::where('name', 'like', '%pro-aluno%')->orWhere('name', 'like', '%proaluno%')->get(),
]);
}
}

0 comments on commit c02f370

Please sign in to comment.