2

I want to run laravel program at CLI, but I don't know how to write the command.
I try to like this /laravel/index.php /controller/method, but it doesn't work.

1
  • 1
    You can't do that. If you want to create a custom command for console read the doc. Commented Jun 21, 2016 at 9:04

3 Answers 3

4

you can refer this link for commands : https://laravel.com/docs/5.1/artisan

using artisan you can create your command as well as controller and model for your application

Sign up to request clarification or add additional context in comments.

Comments

2

laravel artisan command provides functionality for CLI. you can use predefined command and also create your own command as per your requirements, Official documents.

Comments

0

Go to your laravel working folder using CLI

cd your_larave_folder_name

Then run this command

php -S localhost:8888 -t public

This will run your application at port 8888.To access your views using a browser.

localhost:8888/name_of_your_view

You can use any port number other than 8888, also you must run CLI with administrative privileges.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.