How to delete file(s) in Laravel 5

Deleting files from the file system is very common task nowadays and it can be done in several ways. But here I am gonna show you deleting files in the Laravel way. We generally use PHP’s built-in unlink() function […]

Laravel 5.6 – REST API – JWT Authentication

In my last tutorial, we created an APIs for todo application without authentication. In this tutorial, I would like to show you building JWT based login system. Let’s start… Create Project Create a brand new […]

Laravel 5.6 ReactJS Tutorial

In this post, I would like to show you Laravel 5.6 project setup with React JS as frontend framework. In Laravel 5.5, Taylor Otwell introduced new frontend scaffolding via a new artisan preset command. We gonna leavrage […]

Using mPDF with CodeIgniter 3

In my previous post, I wrote a tutorial on Generating a PDF in Codeigniter using mPDF and in that tutorial I covered mPDF library manual installation steps, without composer. So in this post, I would like to use CodeIgniter […]

PHP 7.1 – Catching Multiple Exception Types

We general use PHP’s try..catch blocks to handle exceptions. If the try block could cause one of several different exceptions they can each be handled separately with their own catch section. As shown below If you […]

Laravel 5.6 – New @method and @csrf Blade Directives

Laravel is gonna introduce two new Blade Directives as part of 5.6 release, @method and @csrf Directives. In the current Laravel 5.5 version, we are doing the following at the top of forms to create hidden inputs for the […]

PHP Multithreading Example

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.

Laravel 5.5 – How to log all Eloquent Queries

In this post, I will show you simple method to log each and every Eloquent Query of your application executes. We gonna log queries to the storage/logs/laravel.log file. To log database queries we gonna add a database […]

Laravel 5.5 – Custom Blade::if() Directives

In Laravel 5.5, writing custom blade if Directives is pretty easy. Using this new feature, you can write simplified and clean if statements in your views. Imagine, you have to check, if the user is admin or not, in this […]

Laravel 5.5 – DD and Dump in Collections

Laravel offers two new useful debugging methods dump() and dd() as part of Laravel 5.5 version release. These methods are added to Collections, it means you can call dump() and dd() on collection instances. In previous […]

Laravel 5.5 – Optional Objects

Laravel 5.5 includes a new Optional class with a new helper() function, which you can think of as a generic null object implementation. The point of the optional() class and helper is to prevent situations like where you […]

Laravel 5.5 – Dynamic templates with View::first

Laravel 5.5 is introduced a new feature called dynamic view loading and it makes your controllers simple and more expressive when dealing with dynamic templates. Using This feature we can avoid plain old conditional statements […]

Laravel – Generate PDF file from view

We gonna use barryvdh/laravel-dompdf Laravel package to generate PDF files from view file. This package is just a wrapper around DOMPDF library. Installtion Use below composer command to install the package After installing […]

DMCA.com Protection Status