Instead of relying on the presence of a third-party solution like Homestead on the developer's machine, Docker will read the set of instructions and build the corresponding environment from scratch. Sail's approach is different, in that the instructions to build the development environment come with the project's source code. While Homestead and Valet look quite different on paper, they promote the same general approach to local development, which is also shared by most of the aforementioned solutions: they try to be one-size-fits-all environments for Laravel projects and aim at managing them all under one roof. It relies on a local installation of PHP instead of a virtual machine, and is intended to be used alongside other services like DBngin or Takeout to manage other dependencies like databases. Valet, on the other hand, is a lightweight environment for macOS focussed on performance. That includes essential components like PHP, MySQL and a web server (Nginx), but also other technologies like PostgreSQL, Redis or Memcached. How does it compare to its predecessors?Īs a refresher, Homestead is a Vagrant box (a virtual machine) featuring everything most Laravel applications need. The future of Sail appears to be bright, as the Laravel documentation immediately featured it as the preferred way to instal and run Laravel projects locally, a spot that Homestead and Valet had occupied for a long time. Laravel Sail is based on Docker, a technology leveraging containers to essentially package up applications so they can run quickly and easily on any operating system. It is the most recent addition to an already long list featuring official solutions like Homestead and Valet on the one hand, and community efforts like Laragon, Laradock, Takeout and Vessel on the other (according to the GitHub repository, Sail is largely inspired by the latter). Sail is Laravel's latest development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |