Showing 7 of 1,975 result(s)
The Tinker REPL allows you to enter PHP code and have it evaluated immediately, similar to how Chrome's Developer Tools allow JavaScript developers to experiment directly with a running application. The following example demonstrates entering a...
It's no secret that the cybersecurity industry is changing. The rapid rise of agile development, along with the increasingly complex nature of cyber threats and attacks, has made it necessary for organizations to adopt new methods for managing...
Compiling workspaces is similar to compiling individual documents. The main difference is that the workspace compiler will save the results to a directory on the filesystem. The output directory should already exist, and the PHP process compiling...
The trans_choice helper function can be used to translate a line of text that is dependent on a number of items in a collection. For example, if you were developing an application to retrieve messages from an IMAP inbox, you might want the ability...
By default, the get method will look for the translation lines using the locale specified as the default with the translation service. However, we can specify a locale by supplying an argument for the $locale parameter. For the following example,...
…ossible to limit the execution of tasks based on some criteria that developers define, as well as limit a tasks execution based on the current environment.Limiting the environments the task can run in is done using the environments($environments)...
The with is a useful utility function that can be used to simply return the provided values back to the caller. This can be used as an entry point for method chaining without the need to create temporary local variables. It is also possible to...