这是我的注册页面视图和控制器。我正在使用 Laravel 框架。我已经检查过这个,它因为密码字段而出错。我在没有密码字段的情况下编译了它并且它有效。我无法理解其中有什么问题。我从 laravel 集体表单页面复制了它。
看法:
{!! Form::open(['url' => 'signup/submit']) !!}
<div class="form-group">
{{Form::label('name', 'Name')}}
{{Form::text('name', '', ['class' => 'form-control', 'placeholder' => 'Full Name'])}}
</div>
<div class="form-group">
{{Form::label('username', 'Username')}}
{{Form::text('username', '', ['class' => 'form-control', 'placeholder' => 'Username'])}}
</div>
<div class="form-group">
{{Form::label('email', 'E-Mail Address')}}
{{Form::email('email', '', ['class' => 'form-control', 'placeholder' => 'Your email..'])}}
</div>
<div class="form-group">
{{Form::label('password', 'Password')}}
{{Form::password('password', '123', ['class' => 'form-control', 'placeholder' => 'Password...'])}}
</div>
<div>
{{Form::submit('Submit', ['class' => 'btn btn-primary'])}}
</div>
{!! Form::close() !!}
Run Code Online (Sandbox Code Playgroud)
控制器:
public function submit(Request …Run Code Online (Sandbox Code Playgroud) 这是我的奖励视频脚本。它连接到一个UI按钮。
using UnityEngine;\nusing UnityEngine.UI;\nusing UnityEngine.Advertisements;\nusing UnityEngine.SceneManagement;\n\n[RequireComponent(typeof(Button))]\npublic class RewardedAdsButton : MonoBehaviour, IUnityAdsListener\n{\n\n#if UNITY_IOS\n private string gameId = "1234567";\n#elif UNITY_ANDROID\n private string gameId = "7654321";\n#endif\n\n Button myButton;\n public string myPlacementId = "rewardedVideo";\n\n void Start()\n {\n myButton = GetComponent<Button>();\n\n // Set interactivity to be dependent on the Placement\xe2\x80\x99s status:\n myButton.interactable = Advertisement.IsReady(myPlacementId);\n\n // Map the ShowRewardedVideo function to the button\xe2\x80\x99s click listener:\n if (myButton) myButton.onClick.AddListener(ShowRewardedVideo);\n\n // Initialize the Ads listener and service:\n Advertisement.AddListener(this);\n Advertisement.Initialize(gameId, true);\n }\n\n // Implement a function …Run Code Online (Sandbox Code Playgroud)