Ignored By Dinosaurs laravel feed laravel Easy Markdown with Syntax Highlighting, PHP Edition https://www.ignoredbydinosaurs.com/posts/300-easy-markdown-with-syntax-highlighting-php-edition <h3>Easy Markdown with Syntax Highlighting, PHP Edition</h3> <p>Hi there, and welcome back to this 14th installment of "I rewrote my blog in another framework that I'm interested in learning, this time in Laravel". The trick that we'll be exploring today is that, in contrast to Python (the last version was in Django), PHP's lib story is a bit more sparse for this exact use case. However, I'm completely pleased with the outcome, so let's get busy!</p> <h2>PHP Markdown</h2> <p>Google that term and you'll find this -...</p> Tue, 08 Nov 2016 12:00:50 -0500 Platform.sh from scratch - Laravel, Redis, and the Platform CLI https://www.ignoredbydinosaurs.com/posts/299-laravel-redis-platformsh-cli <p>Hello, and welcome back to Platform.sh from scratch. In this post we'll be reconfiguring your Laravel app that we've been working on in the previous posts to use Redis as a cache and session store, rather than the default file store. We'll also install the Platform CLI and use it to SSH into our application container and get a feel for the layout of the filesystem after it's deployed to its environment.</p> <p>But first, I'd like to have a brief chat about Git...</p> <!--more--> <hr /> <h3>Using the tools the way...</h3> Tue, 18 Oct 2016 16:16:17 -0400 Platform.sh from Scratch - adding a database to your Laravel app https://www.ignoredbydinosaurs.com/posts/298-platformsh-laravel-database-config <p>Hello (!) and welcome back to Platform.sh from scratch. In this post we'll learn about how to set up the Laravel app from the previous post to hook in to various services on Platform, starting with a database connection and moving on to using Redis as a cache and session store. Along the way we'll visit Platform.sh's "environment variables" feature, and we'll set up our first fully functioning deploy hook.</p> <blockquote> <p>Prerequisites - go through the previous post and get that far...</p> </blockquote> <p>Let's get...</p> Thu, 13 Oct 2016 15:46:50 -0400 Platform.sh from scratch - setting up a Laravel app https://www.ignoredbydinosaurs.com/posts/297-platform-sh-laravel-setup <p>Hi there and welcome back to Platform.sh from scratch. In this post we'll convert a Laravel app for use on Platform and learn a few tricks that will hopefully inform converting <em>any</em> app for use on Platform.</p> <hr /> <p>Step 1 is to get going with a new Laravel app, so follow the instructions on <a href="https://laravel.com/docs/5.3/installation#installing-laravel">installing Laravel</a> and setting up a new project. Initialize a git repo, add a new platform, and add the Platform.sh git remote to your local repo. All of this is documented in the <a href="https://www.ignoredbydinosaurs.com/posts/293-platformsh-scratch-part-1-basic-setup/">previous post</a>.</p> <p>Now, at...</p> Mon, 19 Sep 2016 15:06:15 -0400 Some more ruminating about Laravel https://www.ignoredbydinosaurs.com/posts/261-some-more-ruminating-about-laravel <h3>Expository info (skippable)</h3> <p>So, for nigh 6-7 years now I've been a Rails enthusiast. I bought the PragProg AWDWR book when it was covering Rails 2.x and had the beach and hammock on the cover, and then proceeded to take years to figure out everything the book was actually talking about from the bottom of the stack to the top. I find it very enjoyable to be able to get my ideas out (in code), and Rails is still one of the cushiest frameworks around in terms of ease of use. It's almost as...</p> Thu, 28 May 2015 14:23:14 -0400 Laravel mutator not working https://www.ignoredbydinosaurs.com/posts/259-laravel-mutator-not-working <p>I'm sure this is obvious, but I just spent too long trying to figure this one out. The mutator function wasn't even being called.</p> <p>Make sure that the field you want to mutate is included in your model's <code>$fillable</code> array, else the ORM doesn't care that you want to do things to it.</p> Thu, 07 May 2015 19:24:37 -0400