Fix postgres bugs

This commit is contained in:
Daniel Supernault 2020-02-16 23:15:24 -07:00
parent c78bdadb8a
commit 14ba350ba3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
3 changed files with 17 additions and 5 deletions

View file

@ -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)