Laravel requires the Mcrypt PHP extension

后端 未结 22 2054
生来不讨喜
生来不讨喜 2020-11-22 07:59

I am trying to use the migrate function in Laravel 4 on OSX. However, I am getting the following error:

Laravel requir         


        
22条回答
  •  抹茶落季
    2020-11-22 08:35

    You need an all in one environment. You may use MAMP or XAMPP or any other tools. After installing one of these tools you will need to edit(create) your .bash_profile(Assuming that you use bash).

    Or even simple and more professional you can use Laravel Homestead.

    Here is a link to official documentation: http://laravel.com/docs/5.0/homestead

    Also Jeffrey has a free tutorial about it: https://laracasts.com/series/laravel-5-fundamentals/episodes/2

    I advice you to go with homestead because you will preinstall all of the following tools.

    • Ubuntu 14.04
    • PHP 5.6
    • HHVM
    • Nginx
    • MySQL
    • Postgres
    • Node (With Bower, Grunt, and Gulp)
    • Redis
    • Memcached
    • Beanstalkd
    • Laravel Envoy
    • Fabric + HipChat Extension

提交回复
热议问题