我尝试laravel pagination
在我的自定义 CMS中使用
工作illuminate/pagination
,但不正确
此代码用于我的控制器工作
$cats= Category::paginate(2);
但是当我想在刀片引擎中调用这段代码中的分页链接时
{{$cats->links()}}
or
{!! $cats->links() !!}
or
{{$cats->render()}}
我收到这个错误
call_user_func() expects parameter 1 to be a valid callback, no array or string given (View: C:\xampp\htdocs\gitrepo\mvcframwork\resources\view\admin\products\category.blade.php)
git 项目网址 https://github.com/mohammadZx/mvcframwork/tree/log
你可以在 github 的 log 分支上检查项目
我认为这个问题属于laravel pagination service provider
但我仍然不知道如何注册 laravel 提供者或解决这个问题