Skip to main content
changed the question quote, since the question body was edited to contain an esplicit question
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

So i want just a solution forHow do I get the $uid of the currentcurrently logged-in user insideID in the default controller class.?

Controllers have a currentUser method:

public function filtrer($firstLetter='', $nbr_ligne='') {
  $current_user_id = $this->currentUser()->id();
}

So i want just a solution for get the $uid of the current user inside the default controller class.

Controllers have a currentUser method:

public function filtrer($firstLetter='', $nbr_ligne='') {
  $current_user_id = $this->currentUser()->id();
}

How do I get the currently logged-in user ID in the controller class?

Controllers have a currentUser method:

public function filtrer($firstLetter='', $nbr_ligne='') {
  $current_user_id = $this->currentUser()->id();
}
Source Link
Clive
  • 167.9k
  • 19
  • 303
  • 337

So i want just a solution for get the $uid of the current user inside the default controller class.

Controllers have a currentUser method:

public function filtrer($firstLetter='', $nbr_ligne='') {
  $current_user_id = $this->currentUser()->id();
}