Category: Web Development
-
Why use SQLite with Laravel
At first, it wasn’t immediately obvious why to use SQLite, over MySQL, with Laravel but a couple good cases have come up. For AnimaticBuilder, since a robust user database setup isn’t needed just yet, SQLite works great since it’s fast, portable, and easily versioned. Even later, when a user database is needed, individual SQLite databases…
-
WordPress 4.4 Sidebar Naming
With WordPress 4.4 rolling out a few issues have come up around sidebars and widgets but one fix is not immediately obvious. When adding a sidebar, the naming previously was not case sensitive but it is now. The example below would not work: register_sidebar(array( ‘name’=>’Homepage Widget’, ‘description’ => ‘Main Area on the Homepage’, ‘id’ => ‘homepage’,…
-
Want to learn Laravel? Tear apart Illuminate
There are any number of ways to learn Laravel. From the documentation right on laravel.com to the very complete tutorials over at Laracasts.com but there is also great way to learn the basics bundled in the install. Navigate to /vendors/laravel/src/framework/illuminate and dig into the modules that form the key functionality included in the original configuration.…
-
Laravel and JQuery: Don’t Abuse GET
jQuery and Laravel are amazing libraries and frameworks but they don’t always inspire the best practices. Recently when building a basic app I made a fairly amateurish error without even realizing it at first. In building a simple Create/Edit route I used the Route::resource as a shortcut and for making AJAX requests to the route…
-
Stack jQuery events on elements to avoid delays.
While building a bit of code for phlodl.com jQuery was acting up when adding a simple mouseover to expand and the event was delayed when the mouse entered the element. To fix this I daisy-chained the events on the element to fix the delays: Delayed animation: $(‘.feature’).mouseenter( function() { $(this).animate({ height: 540 }, ‘fast’, function() {});…