我试图更改资源文件中所有图片的标记,以便我可以为它们设置一个值(我使用扑克牌)。
所以我得到的图像是这样的:
public function login(Request $request)
{
// Validate the form data
$this->validate($request, [
'email' => 'required|email',
'password' => 'required|min:6'
]);
// Attempt to log the user in
if (Auth::guard('admin')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember)) {
// if successful, then redirect to their intended location
return redirect()->intended(route('admin.dashboard'));
}
// if unsuccessful, then redirect back to the login with the form data
return redirect()->back()->withInput($request->only('email', 'remember'));
}
所以现在我试图通过这样做来实际更改标签值:
Properties.Resources._10Diamonds //The ten of diamonds card
但是,如果Tag属性不存在,这并没有做任何事情。
那么有没有办法在Resources文件中更改图像的标记值?