Laravel API example
Repository to support Laravel Homestead: debug an API with Xdebug and cURL in Sublime Text.
This is an extremely simple API for illustration purpose only.
Get it running
Clone this repository in a directory of your choice (you probably already have one containing your Laravel projects):
git clone firstname.lastname@example.org:osteel/xdebug-api-blog-tutorial.git xdebug-api
Add the site in your
sites: - map: xdebug-api.local to: /home/vagrant/path/to/xdebug-api/public
/path/to/ should be replaced with the path to the project on your Homestead box.
Match the Homestead IP address with "xdebug-api.local" in your local
hosts file (
/etc/hosts on a Mac) (of course, adapt the IP address if you changed the default one):
You should now re-provision your Homestead box. Go to
~/Homestead/ and run
vagrant provision if the box is already running, or
vagrant up --provision if it needs to be started.
You should now be able to access http://xdebug-api.local, which should display the Laravel welcome page.
For the full tutorial, please visit Laravel Homestead: debug an API with Xdebug and cURL in Sublime Text.