as mentioned above, you can see the following line in the code:
return $teacher_name ?: "----";
What is the name of this operator, please? What does it mean?
as mentioned above, you can see the following line in the code:
return $teacher_name ?: "----";
What is the name of this operator, please? What does it mean?
Ternary operator:
return $teacher_name ?: '----';
equals
return $teacher_name ? $teacher_name : '----';
Shorthand for
Previous: Strange vue ie display blank problem
Next: Laravel global scope cannot operate on restricted data after use.