with()
is not a statement but a user defined function in Laravel framework.
From laravel documentation :
490: /**
491: * Short-cut for constructor method chaining.
492: *
493: * @param mixed $object
494: * @return mixed
495: */
496: function with($object)
497: {
498: return $object;
499: }