About @codebriefly

codebriefly.com is a Tech Magazine covering technologies and language used in the web era. The basic motive to build this website is spread knowledge with others. Also, Code Briefly is open for other users to submit their articles, snippets, tutorials and other resources.

  • All
  • Laravel
  • Laravel 5.7
  • Laravel 5.8
  • Laravel 6
  • Laravel 7
  • Laravel Code Snippet

Laravel Logging Guzzle Requests in File

In this article, we will discuss “Laravel Logging Guzzle Requests in File”. In the multiple scenarios, we have to use third-party API’s in our project and test those API using postman or any other tool. But also required to maintain a log for each request, such as what we send (request)? and what we receive (response)? Today, […]

How to Log All SQL Queries in Laravel

In this article, we will discuss “How to Log All SQL Queries in Laravel”. As we know, Laravel provides rich features and flexibility to make development easy. SQL Query Logging is the most common way to debug any application. Today, I will explain to you to Log all SQL Queries in your Laravel application. There […]

How to Handle Content Scraping with Pagination in Laravel

In this article, we will discuss “How to Handle Content Scraping with pagination in Laravel”. I will try to explain to you to Content Scraping with pagination data. Here’s, only the required changes are explained. So I recommend you to check our previous post “How to Handle Content Scraping in Laravel” for better understanding. Update […]

How to Handle Logging in Laravel

In this article, we will discuss “How to Handle Logging in Laravel”. Laravel logging is quite simple and easy to manage. By default, all the error writes in the file located at “/storage/logs/laravel.log”. Yes, it’s easy to get the error information in this file. But day by day it’s getting bigger and than not so […]

How to Handle Content Scraping in Laravel

In this article, we will discuss “How to handle content scraping in Laravel”. Table of Contents PrerequisiteInstall Guzzle HTTP PackageInstall Symfony Dom Crawler PackageCreate Controller ClassClass Constructor and Guzzle InstanceCrawl Content Prerequisite Guzzle HTTP Package: Guzzle is a PHP HTTP client that makes it easy to send HTTP requests. Symfony Dom Crawler: The DomCrawler component […]

Brief Understanding Laravel Scopes

In this article, we will discuss “Brief Understanding Laravel Scopes”. I will try to explain to you, How can you use this in your Laravel application. As we know, Laravel provides lots of rich features to make development easy and simple. You can check the official documentation here. Now, the first question is: Table of […]

Laravel Authorization Policies – Part 2

In this article, we will discuss “Laravel Authorization Policies”. As I already, Describe the Laravel Gates in my previous article. You have to take a look at Laravel Authorization with Gates article for better understanding. Basically, Laravel Policies are the best way to protect Model actions. Table of Contents Why we need Laravel Policy?Create PolicyUpdate Policy […]

Laravel Authorization with Gates – Part 1

In this article, we will discuss the “Laravel Authorization with Gates”. As you know, Laravel provided an Authentication solution that is Out of the box. Laravel provides two simple way to manage the authentications such as Gates and Policies. The basic difference between the gates and the policies, Gates provides a simple closure based approach […]

Brief Understanding on Laravel Repository Pattern Design

In this article, we will discuss the “Laravel Repository Pattern Design”. Using the Repository Pattern, we will add an extra layer between application logic and database. Assume, you want to change your DB from Mysql to MongoDB or anything else. Then Repository Pattern is much beneficial, application logics remain the same and all you have to […]

Brief Understanding on Laravel Observers

In this article, we will discuss “Laravel Observers”. Laravel provides us to implement the Observer pattern to fire some predefined events, which can be listened to hook into when various actions are performed on a model. No dought, it’s a great feature of the Laravel. Observer Class, methods receive the model as their only argument. […]

Laravel Scout with TNTSearch Driver

In this article, we will discuss “Laravel Scout with TNTSearch Driver”. As we know Laravel provides rich features to make development easy and smooth. Laravel provides an official package “Laravel Scout”, which helps to create a full-text search functionality in your application. Table of Contents PrerequisitesInstalling Laravel Scout and TNTSearch DriverPublishing Scout configCreating Post Model […]

How to Use Make Auth in Laravel 6

In this article, we will discuss “how to use make auth in Laravel 6”. Officially Laravel 6 is available now, but some of the changes here, as expected. Because you are reading this article, So I assume you are still not familiar with the Laravel 6. Note that, It’s an LTS version of Laravel. If […]