Answers for "value() in laravel"

PHP
0

value() in laravel

$userID = User::where('username', $username)->value('id');
Posted by: Guest on September-17-2021
0

value() in laravel

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();
Posted by: Guest on September-17-2021

Browse Popular Code Answers by Language