fourtwothree / daily-code

日常工作代码笔记
1 stars 0 forks source link

Determining If An Input Value Is Present #30

Open fourtwothree opened 6 years ago

fourtwothree commented 6 years ago

You should use the has method to determine if a value is present on the request. The has method returns true if the value is present on the request:

if ($request->has('name')) {
    //
}