Allow to use other parameter than slug or id by criteria
Change elseif format
composer.json modificado
Fix CS

Refs #1196.
Use Request::get, as has() method does not exist