Laravel Frame Construction

Source: Internet
Author: User
use composer to build a laravel5.5 frame First, environmental requirements:

1, PHP must be extended: OpenSSL, PDO, mbstring, Tokenizer. Check to see if these PHP extensions are installed and need to be installed if they are not installed.

2, use composer build, need to download Composer-setup.exe Click to open the link;

Requirements: To use the composer command in the console, you need to configure the directory where the composer and PHP executables (. Exe/.bat) are located in the system environment variable path. PHP corresponding Php.exe in the XAMPP installation directory, composer corresponding Composer.bat file directory default is C:\ProgramData\ComposerSetup\bin.

3, cmd command in the Web site www directory, enter:

Create a project directory named blog (directory free name).

4, to the third step created by the Laravel project is not included in the Vender directory, you need to install Vender directory through composer

CMD to the Laravel project directory, enter the command:

If an error occurs, enter the command first:

Composer Update
   @php artisan package:discover
   discovered package:fideloper/proxy
   discovered Package:laravel/tinker
   Package manifest generated successfully.
This results in a successful update.

After success, enter the command again:

Note: The failed opening required ' e:\www\blog\public/appears. /vendor/autoload.php ' (include_path= '); C:\php\pear ') in E:\www\blog\public\index.php on the line 24 error, that is, because the above step was not completed, the Vender directory could not be found;

5. Cmd project directory, set application encryption key

PHP Artisan Key:generate

Note: If "No application encryption key has been specified.", it is because the above step was not completed.

6. You should see the Laravel page in the root directory. second, to add something to not think well ...........

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.