]>
BookStack Code Mirror - bookstack/blob - app/Repos/UserRepo.php
projects
/
bookstack
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added social sign in
[bookstack]
/
app
/
Repos
/
UserRepo.php
1
<?php namespace Oxbow\Repos;
2
3
4
use Oxbow\User;
5
6
class UserRepo
7
{
8
9
protected $user;
10
11
/**
12
* UserRepo constructor.
13
* @param $user
14
*/
15
public function __construct(User $user)
16
{
17
$this->user = $user;
18
}
19
20
21
public function getByEmail($email) {
22
return $this->user->where('email', '=', $email)->first();
23
}
24
}