Converted to Laravel framework