The Blog

Microsoft/Windows

Editing Large Files on Windows

John Koster
John Koster
September 4, 2014

I haven't had much of a chance to publish any articles or tutorials lately (I do have some awesome ones planned and in the furnace, though!). For this post I'd ...

JavaScript: Checking If a Variable Is Defined

John Koster
John Koster
August 8, 2014

← Laravel Paginator Pretty URLs

Laravel

Laravel Paginator Pretty URLs

John Koster
John Koster
July 28, 2014

Learn how to create pretty pagination URLs with Laravel's paginator in this step-by-step tutorial. By extending the Paginator class and overriding the getUrl() method, you can generate URLs like http://localhost:8000/users/page/1 instead of http://localhost:8000/users?page=1. The tutorial includes code examples and explains how to create a custom PrettyPaginator class and use it in your application. Keep in mind that there might be a package available to accomplish this task, so proceed with caution.

Microsoft/Windows

MySQL: Root Element Is Missing (Windows 8.1)

John Koster
John Koster
July 28, 2014

The other day when I restarted my development machine I got a nice little surprise from MySQL Notifier. Update. I got this issue again today after my machine ...

Laravel

Part Two: Creating a Custom Pagination View in Laravel

John Koster
John Koster
July 28, 2014

Learn how to create a custom pagination view in Laravel that includes hidden form input elements to pass search terms and page numbers. Using a view composer, you can generate hidden form inputs based on user input and append them to the pagination view, allowing users to navigate through search results while maintaining their search criteria. Additionally, you can use the appends() method to include input and URL parameters when generating pagination links, ensuring that search data is preserved when users click on the links.

Laravel

Part One: Creating a Custom Pagination View in Laravel

John Koster
John Koster
July 21, 2014

Learn how to create a custom paginator view in Laravel 4 that allows users to enter a specific page number in a text box and jump to that page. The tutorial walks you through implementing the view step-by-step, including adding clickable links and the text box. The end result is a simple pagination view with a text box that lets users easily navigate through large data sets without an infinite-scroll-like solution. Note that the tutorial mentions the use of inline styles, which ideally should be separated into their own stylesheet, and also hints at a part 2 that covers handling filtered data sets.

Procedure vs. Function vs. Method vs. ?

John Koster
John Koster
July 19, 2014

A good example of terms like this are procedure , function , method and the anonymous function . With the exception of the anonymous function all of these terms...

PHP

Lambdas And Closures

John Koster
John Koster
June 25, 2014

Some intermediate to veteran developers will recognize the anonymous function, or lambda function (a function without a name) that we are passing to the get ...

Servers

GitHub For Windows: Sync Failed With Uncommitted Changes

John Koster
John Koster
June 14, 2014

GitHub is a commercial endeavor built around git , and they do fairly well for themselves, and provide a great service. Clicking/tapping this gear will open a ...

Laravel

Getting Kint to Work With Laravel 4.1

John Koster
John Koster
May 14, 2014

Kint is a PHP tool designed to make debugging PHP easier and more organized. It takes output from PHP's var_dump() and debug_backtrace() functions and formats it nicely. While not part of Laravel itself, Kint can be used in conjunction with Laravel's dd function for a powerful debugging combination. Some users have had issues getting Kint to work with Laravel, but one solution is to modify the order of dependencies in the composer.json file. Alternatively, you can manually adjust the autoload_files.php file to ensure that Kint is loaded before Laravel.

Latest posts

That Escalated Quickly: All the New Things

The past six months or so have been incredibly busy. What started as a new article series about cust...

Read more
Troubleshooting a Statamic Illegal Offset Type Error when Viewing Collection Entries in the Control Panel

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collect...

Read more
Creating Simple HTTP Redirect Routes from a Statamic Site

Generating a custom Laravel routes file from a Statamic website to redirect to a new domain.

Read more
Disabling Vite File Hashes

Disabling file hashes in Vite output can be accomplished by modifying your project's vite.config.js

Read more
Implementing a Custom Laravel Blade Precompiler for Volt and Livewire

Learn how to implement a custom component compiler for Laravel's Blade templating language in this p...

Read more
Creating a Hybrid Cache System for Statamic: Part Five

Part 5 of 6 covers implementing a cache namespace and labeling system, which we can use to target mu...

Read more