Recent Articles

Add Environment Variables In Laravel Homestead

profile picture

As it may seem an easy thing to do, and to be honnest : it is, creating environment variables in your Homestead Virtual Machine is something you cannot find in the documentation. While it is missing from the official Laravel Documentation, you can...

- - - - - - - - - - - - - - -

Simple Like System with Laravel 5

profile picture

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 &quot...

- - - - - - - - - - - - - - -

Repository pattern in PHP and Laravel

profile picture

TL;DR A repository is an interface-signed class that encapsulate all SQL queries in specific methods. The repository class is then injected into your controller methods using dependency injection. You use the class methods instead of running sql q...

- - - - - - - - - - - - - - -

Very Simple SQL Dump In Laravel

profile picture

Sometimes when you're working on a specific feature, or maybe a specific page of your website, or even a unit test, you're wondering about the SQL queries that are executed. Laravel Eloquent is great and all but it can be difficult to clearly see...

- - - - - - - - - - - - - - -

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

profile picture

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...

- - - - - - - - - - - - - - -

Register Form Macros Easily in Laravel 5

profile picture

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 weekday...

- - - - - - - - - - - - - - -

Finally A Decent Search Package For Laravel 5

profile picture

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 ju...

- - - - - - - - - - - - - - -

How To Make Clean Forms with Laravel Blade

profile picture

Building forms in our application is one of those tasks that you repeat constantly. Almost every website has forms. We are basically just building forms, over and over. Fortunately with Laravel and the html engine Blade, building forms is already...

- - - - - - - - - - - - - - -

Dealing with Very Long Requests in Laravel

profile picture

Big headache problem that I encountered on some client's project, where I had to build a custom tool to import big ass excel files in the backoffice. When the excel is being imported, we erase everything in the database and insert every entry ag...

- - - - - - - - - - - - - - -

How To Localize Formatted Dates with Laravel And Carbon

profile picture

It's the second time in my carreer as a Laravel Developer that I had to struggle against this, so I decided to write the solution down for my future self 😅 First of all, here's what we are trying to achieve: now()->format('F'); // expected...

- - - - - - - - - - - - - - -

How To Generate Code Coverage on Laravel Homestead

profile picture

TDD is cool right ? PHPUnit implementation in Laravel is so great that it makes TDD even cooler. When building your application you may wonder : did I test everything ?? And how can I make sure that everything is tested ? That's where PHPUnit Co...

- - - - - - - - - - - - - - -

How to fix Expired HTTPS Certificates with Laravel Valet (MacOs)

profile picture

Laravel Valet is awesome and it automatically set your local domains up with SSL certificates, so that you can use your local domain.test with https However, those certificates expire after some time and it's difficult to clean and or renew them...

- - - - - - - - - - - - - - -

How To Log Eloquent Database Queries In Laravel

profile picture

Today I was trying to debug a big Eloquent Query in one of my Laravel Applications, and I couldn't understand what was the issue. I wrote a feature test and hit the route endpoint to trigger the controller's code, to check the values returned by t...

- - - - - - - - - - - - - - -

How to get all Gmail Contacts with Laravel 5

profile picture

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, jus...

- - - - - - - - - - - - - - -

Super Easy Way to Gather Visitors Feedback With Laravel

profile picture

As you surely know, tons of website today features a floating bubble, often in the bottom right of your screen, that you can click to talk with the website administrator. On other websites, you can't really talk to them, but you can send them mess...

- - - - - - - - - - - - - - -

about me

profile picture

I consider myself as an IT Business Artisan. Or Consultant CTO. I'm a self-taught Web Developper, coach and teacher. My main work is helping and guiding digital startups.

more about me

follow me

newsletter

A weekly email with the latests articles

support my work

Start trading on binance
  • BTC

    BTC

    18SY81ejLGFuJ9KMWQu5zPrDGuR5rDiauM

  • ETH

    ETH

    0x519e0eaa9bc83018bb306880548b79fc0794cd08

  • Monero

    XMR

    895bSneY4eoZjsr2hN2CAALkUrMExHEV5Pbg8TJb6ejnMLN7js1gLAXQySqbSbfzjWHQpQhQpvFtojbkdZQZmM9qCFz7BXU

2024 © My Dynamic Production SRL All rights Reserved.