Notes on Laravel 5.7: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
m →‎Installation: fix a typo
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:


<source lang="console">
<source lang="console">
$ ln -s ~/.config/composer/vendor/laravel/installer/laravel ./
$ ln -s ~/.config/composer/vendor/laravel/installer/laravel ~/bin/
</source>
</source>


Line 20: Line 20:
$ laravel new alpha
$ laravel new alpha
</source>
</source>
Install Redis on the system, and install the necessary package.
<source lang="console">
$ composer require predis/predis
</source>
Use Redis for Cache and Session. Files are found in <span class="path">./config/</span> folder.

Latest revision as of 11:47, 18 January 2019

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 ~/bin/

Create a new project.

$ laravel new alpha

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

$ composer require predis/predis

Use Redis for Cache and Session. Files are found in ./config/ folder.