Notes on Laravel 5.7: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
add redis info
Line 19: Line 19:
<source lang="console">
<source lang="console">
$ laravel new alpha
$ laravel new alpha
</source>
Install Redis on the system, and install the necessary package.
<source lang="console">
$ composer require predis/predis
</source>
</source>

Revision as of 20:56, 7 November 2018

Installation

  • Last tested on CentOS 7.5.1804, Laravel 5.7.2 (2018-11-06)

Get composer and install Laravel installer.

$ composer global require laravel/installer

Add a symlink to laravel to ~/bin.

$ ln -s ~/.config/composer/vendor/laravel/installer/laravel ./

Create a new project.

$ laravel new alpha

Install Redis on the system, and install the necessary package.

$ composer require predis/predis