$pages = Page::with('category')->latest()->get()->filter(function($page){
return $page->category->parent_id === 0;
});
return view('admin.page',compact('pages'));
解压缩下载的文件tar -xvzf xdebug-2.7.2.tgz
运行:cd xdebug-2.7.2
(如果没有phpize,请参阅FAQ)。
作为其输出的一部分,它应显示:
phpize
Configuring for:
...
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
If it does not, you are using the wrong phpize. Please follow this
FAQ entry and skip the next step.
./configure
make
cp modules/xdebug.so /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303
并添加以下行
/Applications/XAMPP/xamppfiles/etc/php.ini
我做了所有指示,但是在第10位出现错误:
MacBook Pro-Andar:xdebug-2.7.2 andarpratama $ cp modules / xdebug.so / Applications / XAMPP / xamppfiles / lib / php / extensions / no-debug-non-zts-20160303 cp:/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so:权限被拒绝