value () di Laravel
$userID = User::where('username', $username)->value('id');
Inexpensive Impala
$userID = User::where('username', $username)->value('id');
public function postFav($username, $URLtitle) {
$user = User::where('username', $username)->first();
$userID = User::where('username', $username)->value('id');
$image = Images::where('url_title', $URLtitle)->first();