我有一个小型CRM系统.我可以创建,更新和删除客户.我还为每位客户提供了详细的视图.现在我想在单个视图的最后一个按钮:Create Offer.
我有2张桌子.1表有名称:customer with some fields Name,Surname等我创建了这样的客户:
<form method="post" action="/mvs/mvs/public/admin/kunden">
{{ csrf_field() }}
<div class="container">
<div class="row">
<div class="col-md-12 col-md-offset-2" >
<div class="form-group">
<label for="vorname">Vorname</label>
<input type="text" class="form-control" name="vorname" id="vorname" placeholder="Vorname" value="{{ old('vorname') }}" required>
</div>
<div class="form-group">
<label for="nachname">Nachname</label>
<input type="text" class="form-control" name="nachname" id="nachname" placeholder="Nachname" value="{{ old('nachname') }}" required>
</div>
<div class="form-group">
<label for="strasse">Straße</label>
<input type="text" class="form-control" name="strasse" id="strasse" placeholder="Strasse" value="{{ old('strasse') }}" required>
</div>
<div class="form-group">
<label for="plz">PLZ</label>
<input type="number" class="form-control" name="plz" id="plz" placeholder="Plz" value="{{ old('plz') …Run Code Online (Sandbox Code Playgroud) 我在Laravel创建了一个应用程序.最初,我使用以下内容进行了迁移:
public function up()
{
Schema::create('kundens', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->unsignedInteger('user_id');
$table->string('vorname');
$table->string('nachname');
$table->string('strasse');
$table->integer('plz');
$table->string('wohnort');
$table->string('mail');
$table->integer('telefon');
$table->string('geburtsdatum');
});
}
Run Code Online (Sandbox Code Playgroud)
不,我想添加一些像kaufpreis或"modernisierung"的表.我在其他表下添加了它们,但是当我保存文件并在终端中写入时,我收到错误:
什么都没有迁移.
那么现在我如何添加一些表格以获取更多信息?