我已添加:
login = new NetworkCredential("wapsatest@gmail.com", "wapsatest123456");
client = new SmtpClient("smtp.gmail.com");
client.Port = Convert.ToInt32(587);
client.EnableSsl = true;
client.Credentials = login;
msg = new MailMessage { From = new MailAddress("wapsatest" + "smtp.gmail.com".Replace("smtp.", "@"), "nWorks Employee", Encoding.UTF8) };
msg.To.Add(new MailAddress("saurabh.pawar@nworks.co"));
msg.Subject = "Requested for leave by "+comboboxEmployee.Text;
msg.Body = "///////////////List of dates coming from list box name selecteddates";
msg.BodyEncoding = Encoding.UTF8;
msg.IsBodyHtml = true;
msg.Priority = MailPriority.Normal;
msg.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
client.SendCompleted += new SendCompletedEventHandler(SendCompletedCallback);
string userstate = "sending.......";
client.SendAsync(msg, userstate);
到composer.json
和
"laravel/cashier": "^6.0"
到config文件夹的providers数组中的app.php。
然后我运行了作曲家更新,但如果我这样做:
Laravel\Cashier\CashierServiceProvider::class,
我没有看到那里的收银员指令。我错过了一步吗?
答案 0 :(得分:4)
该命令似乎在5.2中被删除。在查看docs for 5.2时,他们已经更新,并且不再提及使用工匠助手`$ php artisan cashier:table users
相反,您现在必须手动创建迁移而不是使用帮助程序。来自文档:
更新用户表格迁移(或与您的结算相关联的实体):
Schema::table('users', function ($table) {
$table->string('stripe_id')->nullable();
$table->string('card_brand')->nullable();
$table->string('card_last_four')->nullable();
});
创建订阅表:
Schema::create('subscriptions', function ($table) {
$table->increments('id');
$table->integer('user_id');
$table->string('name');
$table->string('stripe_id');
$table->string('stripe_plan');
$table->integer('quantity');
$table->timestamp('trial_ends_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->timestamps();
});
然后运行migrate命令$ php artisan migrate
我无法找到有关此更改原因的任何信息,或者他们是否会在将来重新介绍此工匠命令。我认为这是设计的。
Click here for more info on creating migrations.
希望它有所帮助!