You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not the best at code, but I've set a few fields to be required in edit accessories blade. I did this by editing /var/www/html/snipeit/app/Models/Accessory.php and added the following code:
These successfully made the fields required, but they're missing the orange bar next to each newly required field. How can I add the orange bar next to these fields?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm not the best at code, but I've set a few fields to be required in edit accessories blade. I did this by editing /var/www/html/snipeit/app/Models/Accessory.php and added the following code:
` /**
* Accessory validation rules
*/
public $rules = [
'name' => 'required|min:3|max:255',
'qty' => 'required|integer|min:1',
'category_id' => 'required|integer|exists:categories,id',
'company_id' => 'integer|nullable',
'min_amt' => 'integer|min:0|nullable',
'purchase_cost' => 'numeric|nullable|gte:0',
'purchase_date' => 'date_format:Y-m-d|nullable',
`
These successfully made the fields required, but they're missing the orange bar next to each newly required field. How can I add the orange bar next to these fields?
Beta Was this translation helpful? Give feedback.
All reactions