我想在我的laravel 5 app的弹出框中加载更新/删除视图。目前我已经在一个单独的窗口中打开了一个链接。请指教我
这是我的链接
list.blade.php
<td><a href="{{url('user-edit',$user->id)}}">Update</a></td>
这是我要加载的表单
update.blade.php
<form class="form-horizontal" role="form" method="POST" action="{{ action('Admin\UserController@update', ['id' => $user->id]) }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label class="col-md-4 control-label">Full Name</label>
<div class="col-md-6">
<input type="text" class="form-control" name="full_name" value="{{ $user->full_name }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Username</label>
<div class="col-md-6">
<input type="text" class="form-control" name="username" value="{{ $user->username }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input type="text" class="form-control" name="password" value="{{ $user->password }}">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Register
</button>
</div>
</div>
</form>
<div class="col-md-6 text-right">
{!! Form::open([
'method' => 'DELETE',
'route' => ['destroy', $user->id]
]) !!}
<button type="submit" class="btn btn-danger">
Delete
</button>
{!! Form::close() !!}
</div>