How to Create APIs in Laravel 5.5 using API resources

In this post, I will show how easy it is to use API resources to build REST APIs. In the previous Laravel REST API tutorial, I have used Fractal 3rd party library to control API response data. In Laravel 5.5, we now have […]

Laravel 5.5 New feature- Fresh Migrations

In Laravel 5.5 a new Artisan command added to migrate: namespace. This is similar to the existing migrate:refresh option, however, rather than rolling back your existing migrations, migrate:fresh drops all the table and […]

Laravel – .env Variables

Laravel utilizes the DotEnv PHP library by Vance Lucas. Using this library we can easily configure the application settings and we can have different configuration values based on the environment where the application […]

How to Clear cache in Laravel 5

Here I am gonna show you few artisan commands which will help you to clear different caches in your Laravel application. Clear Application Cache To clear application cache use the php artisan cache:clear command. Generally […]

Laravel 5.4: Fluent Routing

Laravel 5.4 has released another pretty cool routing improvement. In this post, I would like to show you the improved fluent Registering Routes. In the past, you used to define a named route like this at the end of the […]

How To Validate Date Format in Laravel

In this post, I would like to show you date format validation in Laravel application, You should always validate forms to ensure that you receive data in the good format. Date validation Rules Here is the list of validation […]

Laravel API Token Authentication

If you want to create a simple REST API, secured by web tokens for your mobile application or angular based application, you could develop it with Laravel, with very simple steps. In Laravel 5.2, Taylor Otwell introduced […]

bootstrap 4 carousel with Laravel

Laravel’s Blade templating engine’s @foreach control structure directive has $loop variable which is available inside every @foreach loop. The $loop variable is a stdClass object that provides meta information […]

How to get Client IP Address in Laravel 5

Sometimes you need to track the IP address of the visitors for different reasons. In this tutorial, I would like to show you, how to get the IP address of clients in Laravel application. In PHP you use super global variable […]

Laravel 5 Role Based Access Control using Middlewares

In this post, I would like to show you very simple approach to develop a security layer around Laravel routes with custom Middleware. Laravel Middleware Middleware provides a convenient mechanism for filtering HTTP requests […]

DMCA.com Protection Status