Ever launched a project and immediately realized that you need a blog or article section to reach out to new visitors or share in social media?

Instead of setting up your custom models, routes and database tables, why not just use a plug and play solution?


Just released is Ampersand, a quick and easy solution for setting up a complete flat file blog-system for your project.

Ampersand for Laravel

Just install with composer install olssonm/ampersand and then publish the configuration; php artisan vendor:publish --provider="Olssonm\Ampersand\AmpersandServiceProvider"

Create your first post with php artisan ampersand:new and select a title. You are now ready to start writing!

Laravel Horizon is a very simple yet powerful tool to monitor your applications Redis queues. For our applications we of course want to prevent access for non-authorized users and visitors.

By default Horizon uses the Laravel-provided authentication-system built around users and the Authenticatable-class. But what if your application doesn’t have any users and you don’t want to manage things like passwords and or usernames — or perhaps you don’t even have a database?

There is a very simple and easy solution for this; HTTP Basic Auth.

Laravel’s default basic auth-middleware still relies on the built in authentication system, so we…

In late December some AdSense marketers started to noticing something strange; their AdSense Coverage seemed to be dropping, and with it their earnings and revenue. But why is this?

Well, the answer is simple; because Google will no longer display any ads on pages that have yet to been crawled by the AdSense Bot — even if the site is trusted. …

When deploying a new server on Laravel Forge a default site is always created which is set up to handle all the requests to the servers IP that does not have it’s own server name set up.

The idea is sound, but the default site displays the output of phpinfo(), something that we more often than not really don’t want or need. Also, after a while when you have a dozen or so servers set up all those default sites start to clutter up the interface when trying to navigate to the server and/or site you want to edit.

Some default sites


I’m running a site (built on Laravel) which uses Google’s Javascript API for Google Maps. This how it is supposed to look:

Just a simple map with markers placed on cities. To achieve this I use the cities latitude and longitude parsed via the google.maps.LatLng-class.

However, after a minor update, this is what my map looked like:

Sooner or later you are going to encounter the need to work multiple Laravel-applications, perhaps maintaining a legacy app running Laravel 4.2 and something new built on Laravel 5.4. All this while still using Homestead for the ease of development.

Well, how to we do this if we are looking for having access to both a PHP 5.6 VM and a 7.0 (or even 7.1) VM at the same time to take advantage of the bells and whistles in PHP 7 for our newer apps? Well, as it turns out — It is pretty easy!

Update: Since the release of…

Marcus Olsson

Freelancing web developer building awesome stuff for the interwebs. https://marcusolsson.me

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store