Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lumen command not found

I'm trying to install lumen for my new project. While using the lumen command in terminal it says " Command not found "

Image of my terminal commands

  1. composer global require "laravel/lumen-installer"
  2. lumen new firstapp

What's wrong?

like image 874
Leslie Avatar asked Aug 23 '16 09:08

Leslie


People also ask

How do I run custom commands in Lumen?

To see all built-in commands, use the php artisan command in Lumen. Although there is no make:command command at Lumen, you can create your custom command: Add new command class inside the app/Console/Commands folder, you can use the sample class template of the framework serve command.

How do you install lumens?

To start with, install composer and then change your directory to the root folder of the server. Create a lumen project “lumen_api” from the “laravel/lumen” package (packagist.org). The composer will create a folder “lumen_api” and install all files of lumen including dependency.


1 Answers

You can directly create your project by using composer using the following command :

composer create-project --prefer-dist laravel/lumen firstapp
like image 87
Pranab Avatar answered Sep 24 '22 00:09

Pranab