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

Create New Post Contact Us

Laravel and Content Negotiation

Here's a little bit about content negotiation.

An HTTP client, such as your browser, or perhaps jQuery's ajax method, can set an Accept header as part of an HTTP request.

Accept Header -------------

This header is meant to tell th

AND-OR-AND + brackets with Eloquent

Eloquent is a great thing – you can build your query step-by-step and then call get() method. But sometimes it gets a little tricky for more complicated queries – for example, if you have multiple AND-OR conditions and you want to put bra

How to use session in laravel

Laravel provides more inbuilt method to get and set session data. it’s easy to working with session in laravel.A session variable is used to store some information or some data about user or anything you want to access on all pages of an applic

eCommerce site using VueJS & Laravel (part 1)

In these streams I'll be making an eCommerce site using Laravel and various packages. Among the things we'll be using aside from Laravel include:

Laravel-uuid for non-enumerable product id's

How to back up your mysql database from a Laravel 5.1 application to Amazon S3

The following steps are a summary of the instructions from https://github.com/backup-manager/laravel, specific to a Laravel 5.1 application that needs to back up a mySQL database to an AWS S3 bucket.

The backup-manager library uses mysqldump to pe

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