Fix postgres bugs
This commit is contained in:
parent
c78bdadb8a
commit
14ba350ba3
3 changed files with 17 additions and 5 deletions
|
@ -22,6 +22,10 @@ class ProfileController extends Controller
|
|||
{
|
||||
public function show(Request $request, $username)
|
||||
{
|
||||
if(config('database.default') == 'pgsql') {
|
||||
$username = strtolower($username);
|
||||
}
|
||||
|
||||
$user = Profile::whereNull('domain')
|
||||
->whereNull('status')
|
||||
->whereUsername($username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue