Localhost, Php artisan serve and homestead Pro/Cons

倖福魔咒の 提交于 2019-12-01 14:43:34

Although this question is opinion based, my answer will be based on my experience.

WAMP (Localhost) Wamp is short for Window Apache Mysql PHP

Pros: - Wamp can easily be setup on windows by installing Wamp server, EasyPHP e.t.c

  • Can easily be configured

  • Comes with PHPMyAdmin for quick Mysql database administration

Cons:

  • Setting up Laravel in Wamp is a big pain as it involves advance configuration else you end up with URL e.g http://localhost/project/public

  • I have tried installing Memcached without success on Wamp; which is a good caching server for PHP/Laravel

PHP Artisan

Pros:

  • Easy to use
  • clean URL without /public

Cons:

  • You still have to install PHP and Mysql to make it work
  • Should be used for small Laravel project
  • some other limitations

Homestead

This is the preferred development environment for Laravel

Pros:

  • Installs everything you need to start developing Laravel app
  • share a folder between your host
  • can easily be rebuilt

Cons:

  • I noticed each time shutdown my host system without properly saving homestead, I have to provision homestead each time to make it work which atimes requires internet connection
  • there are some issues peculiar to Homestead that doesn't have specific solution you have to try a lot of things to resolve issue.
  • Homestead seems to be slow atimes

LNMP

Linux (Ubuntu) Nginx Mysql PHP and virtualbox

This is my best development environment. It takes minimum Linux experience to make this work but once achieved you will enjoy it.

Pros:

  • fully customize and install anything you want such memcached, gulp, Mysql , PHP. Git, Just anything
  • broaden your experience as a programmer do things yourself like system admin
  • It hardly crash unlike homestead. You can always take snapshots in virtualbox
  • easily move to a new system by coping virtual hard disk to another virtualbox

Cons:

  • requires more effort to setup
  • you need to have little Linux experience

These are just few of my experience which my answer is based upon.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!