php - Queries of checkbox on octobercms/laravel
416
I would like to know how i can get the current status of checkbox without saving the model in octbercms or laravel. Thanks. The following is what i would like to do:
public function button_pressed(){
if(checked){
//do something
}
}
Answer
Solution:
To check if a checkbox is checked you basically have to check if the input exists, so using the request object:
EDIT: