I'm struggling to get Laravel Mix and webpack-dev-server working together correctly. Mix works fine for bundling assets to files, and using "watch" mode also works correctly.
When I try using it with webpack-dev-server, I hit problems. The in-memory "build" seems to works, and the dev-server is serving up assets (so not a cache problem) - but it's serving stale ones from storage, rather than the in-memory versions. If I change a source file I see the rebuild in the console, but still the stale assets get served if I hit F5. (The stale assets are from a previous 'regular' Laravel mix build)
More details on SO below. Not sure if SO or this forum is the best place to ask this...
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 would actively prefer them to be updated with the rest of the framework.
OK, understand it now. PaginationServiceProvider specifies the view 'namespace'
pagination with theloadViewsFrom` call.
Ah - just drilling down from @gcwilliams answer re namespace. Again, it all seems quite different with 5.5...
@jlrdw "Again" ??? Have I missed something?
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
After a bit more digging, this approach works and should be robust. I've just stuck it in
bootstrap\app.php for now
This sets the default view for both simple and normal paginators.
pagination:: is still voodoo to me though.
@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
After looking into the code. I tried this which works, but I'm not yet familiar with the
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.