Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

raygun's avatar

@JarekTkaczyk my new error Call to undefined method Illuminate\Database\Eloquent\Collection::paginate()

raygun's avatar

@JarekTkaczyk I think I got it to work I had to delete->get()

so I changed this

        Post::search('%'.$query.'%', ['title', 'subtitle'])->get()->paginate(15)

to this

        Post::search('%'.$query.'%', ['title', 'subtitle'])->paginate(15)
raygun's avatar

This is what I was looking for @JarekTkaczyk. searches all tables just by adding them. Theres one thing I'd like to know. The Form and Html facade are now 'Collective\Html\HtmlFacade', and are maintained by somebody else. they had another name that I forgot. They are maintained by collective now. should you abandon this project, will this stop working after a few version upgrades of laravel? will my app break? whats protocol for when/if that happens? thanks for your time.

Previous

Please or to participate in this conversation.