Artisan Tinker Class not found in eval()'d code on line 1

Imagine you’ve set up a simple blogging application in Laravel. You’ve created a migration and model for your posts table and Post model respectively.
You’ve seeded up a few posts just to test things out and you want to play with tinker so…

php artisan tinker
>>>\App\Post::count();
PHP Fatal error...
Keep reading...

Back to basics - Building a simple HTML page template

Sometimes you just need the simplest possible thing that can work; a quick HTML template to tinker with without having to load a whole cruft of css and javascript. Sometimes you’re just starting on your journey, learning web development and need to get to grips with the smallest possible building...

Keep reading...

Connecting to a LocalDb instance from Visual Studio

Visual Studio allows you to connect to a database server through the “Server Explorer” tab. However, I always forget how to connect to the LocalDb instance when I’m just prototyping in ASP.NET MVC. Here’s a small reminder.

Open the Server Explorer Tab

From within Visual Studio, click View -> Server...

Keep reading...

← This way