How do I get the render method to output HTML for Bootstrap 4 rather than 3? I see bootstrap-4.blade.php and other view files in \Paginations\resources\views, but I don't know how/where to specify which one to use.
Sorry for the noob question as I'm still feeling my way around this stuff, and most of the info I've found seems to refer to earlier Laravel releases.
If you don't want to specify the file every time you call links, just rename bootstrap-4.blade.php to default.blade.php.
Remember to make a backup of the default in case you want to switch back.
@36864 Won't that get overwritten if/when I upgrade the Laravel version of the project?
@gcwilliams In 5.5 links() is replaced with render() which appears to work similarly. Also not clear how to use the 5.5 paginator views in-situ rather than copying them to resources\views?
After looking into the code. I tried this which works, but I'm not yet familiar with the pagination::syntax?
Pagination CSS - yes, understand all that - what I don't yet understand is how requesting a view called *pagination::*foobar maps to vendor/laravel/framework/src/Illuminati/pagination/resources/views/foobar.blade.php
You should really use the vendor publish command. While it may find it in the framework folder, you really don't want an upgrade of the framework to change things and change your code. If it is published, it becomes in your own files and unless you overwrite it, it won't change.
Also, as far as I can tell. the links() method still works in 5.5. It just is an alias now for render
@jlrdw no I have not figured it out. It is a bug in the site. I have reported it, but since it is probably only happening to a few people it probably isn't high on Jeffrey's list.
If you look it really is just displaying it twice. It is not double posting or anything like that. Editing one, edits them both. Same with deleting. Odd bug, but can't help it unfortunately.
@gcwilliams : links() vs. render() . Thanks, you're right.
Vendor publish : I want to use the BS4 views that ship with Laravel 5.5. I've no plans to mod them, and would actually prefer them to be updated with the rest of the framework if necessary.
@roddyp youre answer works thank you... i was using bootstrap 3 in laravel but when i shifted to bootstrap 4 pagination come out ugly then i came across with your'e answer then it works hehe Thank you..