79148381

Date: 2024-11-01 14:39:47
Score: 1
Natty:
Report link

You can achieve this otherwise by calling the php rand function straight away from your blade file rather than defining js method to do this. It would be as shown below;

@if(rand(0,1) === 1)
   @include('components.Hero1') 
@else
   @include('components.Hero2')
@endif
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Olumuyiwa