me10071990
1 week ago
27232
10
Laravel

"Method Illuminate\Database\Eloquent\Collection::render does not exist. (View: C:\xampp\htdocs\post\resources\views\layouts\categories\admin_template.blade.php

Posted 1 week ago by me10071990

For another template it's working when using render then it's not working

Blade.php

{{$posts->render()}}

and Controller

public function posts() {

    return view('layouts.categories.admin_template')

        //->with('latest', $latest )
        ->with('levels', Category::take(7))
        ->with('posts', Post::all());


}

Please sign in or create an account to participate in this conversation.