Mydnic


A blog about Laravel, AngularJS, Philosophy, Cinema and Domotic

Laravel 5 And His F*cking non-persistent App SetLocale

Hey! Looking for a more SEO Friendly way to manage a multilingual application with Laravel5 ? Check this tutorial! Edit: This article have been updated to match Laravel 5.2 architecture. If you ever have worked already with Laravel 5 (if not, you sho...

How to use Laravel Dusk with Homestead on a Windows machine

Alongside Laravel 5.4 update, a new tool came up : Laravel Dusk.If you were used to run tests on your Laravel application, and particularly "Feature tests", you are most likely used to write test cases in which you can actually fill forms, click butt...

How to get all Gmail Contacts with Laravel 5

Hi folks !New quick tutorial today on how to retrieve your user's google contacts with Google API in Laravel 5.Ok, to explain a bit how I did it, I first need to set everything in context. If you want to skip and get into it right now, just scroll to...

Finally A Decent Search Package For Laravel 5

I know it's been only a few weeks that L5 is out, but still. Even with Laravel 4, I couldn't find any good package that made search queries easier.I'm showing this package to you and I didn't even installed it yet on this Website. Lol.Don't judge me....

Some New Tips About PHP7

It's been several months that PHP 7 was released, and the latests frameworks already upgraded to be compatible with this version.Laravel Homestead, the OOTB server environment is now up to date as well, so all your new projects will run on a PHP 7 se...

The Vagrant Setup File You Were Looking For

Several weeks ago, I started to use vagrant in order to work on my Laravel Projects. The purpose was to avoid wamp bugs, and mostly avoid having to run Server Side technologies on a windows OS...Now, if the setup of the Vagrant software is straightfo...

Easiest way to bind events to your models

In this article I'll explain what I think is the easiest and cleanest way to bind events to your models in Laravel 5.In fact, I am working on a new project right now and I needed to implement a notification feature to the platform. I was thinking "wh...

How To Build An Efficient and SEO Friendly Multilingual Architecture For Your Laravel Application

This article was updated to match Laravel 5.4One day I wrote an article on this blog about solving an issue with the non-persitent App SetLocale of Laravel 5. To my big surprise this article became quite popular and received more or less 1.000 unique...

The Ultimate Like System For Laravel Thanks To Many to Many Polymorphic Relationships

Several months ago I wrote an article on How to create a Simple Like System For Laravel. In the comment of this article, a cool guy asked me about using a "Many to Many Polymorphic Relationship" for this "Like" logic.I found the idea very appealing a...

Register Form Macros Easily in Laravel 5

While working on a new project at work I had to create a custom form input. The goal was to have a select list of the days of the week. If there is already a form method to do so with the Months of the year, there's no default method for the weekdays...

Simple Like System with Laravel 5

Update: A new and better way to build a Like System in Laravel is described in this article Yo yo guys ! Today I'll be giving you a new tutorial on how to build a quite simple "Like" system onto your Laravel 5 application.This "Like" system can be co...

Email Yourself When Someone Encounter An Error In Your Laravel Application

Did you ever feel anxious about deploying a large application in production for the first time ? You are afraid that there are still some bugs somewhere, because you don't have a full testing team to report everything to you ? And you wonder : "If a...

Informations about this website

Hello guys,I am currently buidling this website using only opensource technologies and tools. This blog is actually an opensource project itself, based on the famous PHP Framework Laravel 5.The purpose of this project is to provide a full featured bl...