Contact

Blogs

Take a look at the things that interest us.

Install Laravel Command on server

Wesley Wesley 1 year

In today's blog post we are going to install the Laravel command for our Amazon Linux ec2 server.

Requirements

  • PHP 7.4, 7.3
  • Composer

To begin let's install the Laravel installer package

composer global require "laravel/installer"

Now when composer is finish, type

vi ~/.bashrc

Add the following line

export PATH="~/.config/composer/vendor/bin:$PATH"

Now execute the following command

source ~/.bashrc

The Laravel command is now installed and can be tested by writing the following command in your terminal.

laravel --help
output
Description:
  Displays help for a command

Usage:
  help [options] [--] [<command_name>]

Arguments:
  command               The command to execute
  command_name          The command name [default: "help"]

Options:
      --format=FORMAT   The output format (txt, xml, json, or md) [default: "txt"]
      --raw             To output raw command help
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  The help command displays help for a given command:

    php /root/.config/composer/vendor/bin/laravel help list

  You can also output the help in other formats by using the --format option:

    php /root/.config/composer/vendor/bin/laravel help --format=xml list

  To display the list of available commands, please use the list command.
Install Laravel Command on server 2021-09-13 14:08:39

There are no comments.

4169

Have questions about our services?

Contact our Sales team to get answers.

Contact Us