app/Console/Commands/Tenancy/CreateTenant.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
      $host= $this->argument('hostname');
      $user_id= $this->argument('user');
      $user = User::find($user_id);
      Tenant::CreateTenant($user,$host);
    }
public function handle ( ) { $ host = $ this -> argument ( 'hostname' ) ; $ user_id = $ this -> argument ( 'user' ) ; $ user = User :: find ( $ user_id ) ; Tenant :: CreateTenant ( $ user , $ host ) ; }
Execute the console command.
Execute the console command .