dope2008

4451 经验值

$list = 数据库select出来的文章;
$date = '';
foreach ($list as $item) {
    if ($date != $item['文章日期']) {
        echo '日笺';
        $date = $item['文章日期'];
    }
    echo '文章';
}

[2016-12-27 13:08:01] local.ERROR: SymfonyComponentProcessExceptionRuntimeException: The Process class relies on proc_open, which is not available on your PHP installation. in /data/wwwroot/vip.ouyuzr.com/vendor/symfony/process/Process.php:150
Stack trace:

0 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(170): SymfonyComponentProcessProcess->__construct(''/usr/local/php...', '/data/wwwroot/v...', NULL, NULL, NULL)

1 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(153): IlluminateConsoleSchedulingEvent->runCommandInForeground(Object(IlluminateFoundationApplication))

2 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(59): IlluminateConsoleSchedulingEvent->run(Object(IlluminateFoundationApplication))

3 [internal function]: IlluminateConsoleSchedulingScheduleRunCommand->fire()

4 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(508): call_user_func_array(Array, Array)

5 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): IlluminateContainerContainer->call(Array)

6 /data/wwwroot/vip.ouyuzr.com/vendor/symfony/console/Command/Command.php(254): IlluminateConsoleCommand->execute(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

7 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): SymfonyComponentConsoleCommandCommand->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

8 /data/wwwroot/vip.ouyuzr.com/vendor/symfony/console/Application.php(821): IlluminateConsoleCommand->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

9 /data/wwwroot/vip.ouyuzr.com/vendor/symfony/console/Application.php(187): SymfonyComponentConsoleApplication->doRunCommand(Object(IlluminateConsoleSchedulingScheduleRunCommand), Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

10 /data/wwwroot/vip.ouyuzr.com/vendor/symfony/console/Application.php(118): SymfonyComponentConsoleApplication->doRun(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

11 /data/wwwroot/vip.ouyuzr.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(121): SymfonyComponentConsoleApplication->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

12 /data/wwwroot/vip.ouyuzr.com/artisan(35): IlluminateFoundationConsoleKernel->handle(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))

13 {main}

这个是什么错来的??

Route::group(['middleware' => ['auth:api']], function () {
    Route::get('/test', function (Request $request) {
        return response()->json(['name' => 'test']);
    });
});

我这样子写不对的,访问不了
/test