.test
domains. By default, Herd creates and parks the ~/Herd
directory and every folder that you create in this directory is reachable via its own domain.
Let’s open your terminal and go into the directory:
.test
domain. Herd provides a command to open your browser directly from your terminal.
herd edit
.
Herd Pro users can set up additional services and start using the integrated dump debugging feature, work with emails and check our their logs, so if you are using Herd Pro, this is how they work.
dump()
or dd()
. While dd
stands for dump and die
and stops your application, dump
simply displays some output. Herd Pro has a separate dump window that displays this information in a great way and also allows you to listen for Eloquent queries, logs and more. As a first test, you can invoke the dump function and print out the simple string hello from your app
.
Go to your terminal and start a tinker session by running the tinker command of the Herd command line interface. It proxies the tinker command of Laravel but always uses the application PHP:
dump
and dd
helper anywhere in your application to debug browser requests and CLI commands.
env
file in the root of your application directory and make sure to update the mail settings according to the following configuration.
MAIL_USERNAME
in the configuration above to something easily identifiable.
So after you’ve setup up the mail service, let’s test the configuration by creating a test email and sending it via tinker.