title: run artisan command from php function
body: <p>I want to run <code>php artisan passport:client --password</code> from function.</p>
  
  <p>I tryed <code>Artisan::call('passport:client');</code> and <code>Artisan::command('passport:client');</code> but it return <code>undefined command</code></p>
  
  <p><strong>Note: I have alredy install laravel passport and the command is working fine from the terminal</strong></p>