Share, Read & Learn

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 Code Snippet
  • WordPress
  • Wordpress Tips

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”. Prerequisite Guzzle HTTP Package: Guzzle is a PHP HTTP client that makes it easy to send HTTP requests. Symfony Dom Crawler: The DomCrawler component eases DOM navigation for HTML and XML documents. I’m note adding the Laravel installation steps in this article, […]

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: Why we […]

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. Why we need Laravel Policy? Laravel Policy is a class, […]

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. Prerequisites Here, we need a Laravel installation to make this Laravel Scout functionality. […]

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 […]

Ultimate WP_Query Guide with Arguments

In this article, we will discuss the WordPress WP_query with Arguments. You can use this in the custom query when you require. Basic WP_Query Syntax $args = array( // List of arguments ); $custom_query = new WP_Query( $args ); // The Loop if ( $custom_query->have_posts() ) { while ( $custom_query->have_posts() ) { $custom_query->the_post(); // Do Stuff […]