The Blog

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.

Laravel

Laravel 4: Be Careful With Your After Filters

John Koster
John Koster
April 4, 2014

Learn how to use the after filter in Laravel 4 to perform tasks after your routes and controllers have run. This filter can be used for various purposes, such as logging or checking specific conditions. By using the after filter, you can manipulate the response content before it is sent to the client. However, if you are working with views and want to avoid potential issues with nested queries being executed twice, it is recommended to use the getContent() function instead of casting the view object to a string.

Servers

How Does PHP Work With The Web Server And Browser?

John Koster
John Koster
April 2, 2014

A large amount of web sites and applications are powered by PHP; therefore an understanding of the PHP language is mandatory to fully understand and accept the ...

Laravel

Laravel 4: Working With Checkboxes and Input

John Koster
John Koster
April 1, 2014

Learn how to create a checkbox in a Blade view using the Form class in Laravel. You can check if a checkbox is checked in a controller by using an if statement. Ensure the checked state of the checkbox is set by passing a boolean value as the third argument in the checkbox function. You can also use Input::old() to set the checked state based on the previous input.

Latest posts

Where Things get Good: Moving on to Forte Development Phase 1

Wrapping up Forte Phase 0 with the lexer and parser now in private alpha, and kicking off Phase 1 wi...

Read more
Forte Update: Backtracking, Metadata, HTML Validation, and More

A Forte development update: the parser now supports backtracking, improvements to node metadata, ide...

Read more
Parsing HTML and Blade Attributes in Forte

Wrapping up attribute parsing in Forte's HTML parser, from simple HTML attributes to complex, edge-c...

Read more
Switch Statements and Parser Extensions in Forte

Exploring how Forte's parser extensions can be used to handle complex Blade directives like nested s...

Read more
Parsing Blade Comments in Forte

Digging into parsing Blade and HTML comments while building Forte's HTML parser for Laravel Blade.

Read more
Thoughts on HTML Elements and Blade Components in Forte

This week I’m tackling Forte's HTML parser - consolidating Blade, Flux, and Livewire components into...

Read more