在Laravel框架中使用命令提示符(而不是浏览器)从表中选择

I want to select all data from 1 table in command prompt (not from browser) using Laravel framework. Is there anyone know what the good references is? please give me link, thankyou

Try:

php artisan tinker

Then:

DB::table('users')->get()

You can create an Artisan Command.

Check the Laravel 5.0 docs:

http://laravel.com/docs/5.0/commands

Then, you can run you command. Example:

php artisan mycommand:list 

Laravel 4.2: http://laravel.com/docs/4.2/commands

You can run artisan commands from "cmd" (Windows). (Edit your environment variables first! Add you PHP path).