A place where all members can share their Laravel & PHP tutorials, links, news, packages, etc.

Create New Post Contact Us

Why And How To Use Swagger With Laravel Based RESTful API

When writing an API, it’s always a good idea to give the API users an interactive visualization of your complete API. Things can get more awesome if the interactive tool can be used as a playground to test your API. Google’s OAuth 2.0 P

Dealing with brute force attacks in Laravel

As soon as your web application gains any kind of traction you will become the target for brute force attacks.

Whilst an all out attack is very difficult to fight against, there are certain things you can you put in place to try to thwart brute fo

Do I Really Need This Route Anymore?

Clean out old code can be hard. When your application has numerous javascript widgets, blade templates and forms you can not easily say what routes are being used. But with just a few artisan commands we can easily make this happen.

Also this can

How to change Form Request Validation Rules based on HTTP Request Method

In this post I will show you how to change your Laravel validation rules based on the request method type. This is useful when you want your validation logic encapsulated in one validation class. By the way. There’s nothing bad about having sev

Laravel Social Media - Authentication & posting statuses

Sam shows you how to authenticate users and post status using Laravel 5 framework.

Get Laravel Design Patterns and Best Practices book for FREE!

> This deal has expired, but you can still get another programming book for free. Check the link out.

Packt Publishing is giving you a premium book for free! Just click the link below, register an account if you don't have one yet, login a

Create a View inheritance in Laravel

ften times - for example, with index page lists - we have virtually the same blade for all of our models. "Virtually" all is the key word - because of course, a few will have some small differences. The temptation is to start adding conditi

Get thousands of courses to learn Laravel, PHP, Javascript, and many more for FREE!

We would like to let you know that Microsoft is now giving you a free Pluralsight 6-month Pro Subscription, which usually costs $250.

Get thousands of courses to learn Laravel, PHP, Javascript, and many more for FREE!

Easy timezones in Laravel with Carbon

Here is a simple way to manage storing and displaying dates and times in Laravel in the user's timezone.

First of all, we are going to store all dates and times in UTC. In Laravel, make sure that the timezone is set to UTC in config/app.php

A PHP 7 / Laravel package to create slugs

Spatie, the company where I work, recently released a Laravel package called laravel-sluggable. It automatically creates unique slugs when saving a model.

To install that package you just need to put the provided Spatie\Sluggable\HasSlug-trait on