Nếu là một Front-end dev chắc hẳn bạn đã từng sử dụng Font Awesome – một thư viện font icons rất đồ sộ và phổ biến. Và khi bạn đang triển khai một dự án Nuxtjs 3 và muốn sử dụng thêm bộ font icons này thì bạn đã đọc hướng dẫn cài đặt Font Awesome cho Nuxt 3 trên…
In this article, we’ll be exploring the concept of routing and controllers in Laravel. Routing is the process of mapping URLs to specific actions, and controllers are the classes that handle these actions. Understanding routing and controllers is essential for building robust and scalable applications in Laravel. Objectives The objectives of this article are to: Routing in Laravel What is…
Nếu bạn làm việc với các IDE đến từ nhà JetBrains thì bạn chắc không lạ lẫm gì với thư mục .idea – một thư mục được tự động tạo ra bởi IDE để lưu các thông tin của dự án bạn đang mở. Tất cả các sản phẩm IDE của nhà JetBrains đều sẽ tạo thư mục .idea khi…
Mẫu thiết kế tính toán trước (Computed Pattern) Trong chuỗi bài viết “Xây dựng với Mẫu thiết kế”, chúng ta đã xem xét các cách lưu trữ dữ liệu một cách tối ưu. Tuy nhiên, chỉ lưu trữ và có sẵn dữ liệu thường không mang lại nhiều giá trị. Giá trị của dữ liệu trở nên rõ ràng hơn…
Khôi phục commit đã xóa trong Git là một trong những tác vụ quan trọng mà mọi người phải biết khi sử dụng Git để quản lý mã nguồn. Tuy nhiên, việc xóa một commit có thể dẫn đến một số sai sót trong quá trình phát triển phần mềm. Khôi phục commit đã xóa có thể được thực hiện…
I. Introduction Having a properly configured development environment is crucial for building and testing Laravel applications. In this article, we will cover the steps to set up the Laravel development environment on your local machine. The steps to set up the Laravel development environment include installing PHP, a web server, and a database, as well as installing XAMPP, Laravel, and…
I. Introduction Laravel is a free, open-source PHP web framework used for web application development. It follows the Model-View-Controller (MVC) architectural pattern and provides an elegant and simple syntax for common tasks such as routing, authentication, and database management. Laravel was created by Taylor Otwell in 2011 as an alternative to existing PHP frameworks. Since its initial release, Laravel has…
To get the post ID by the slug in WordPress, you can use the get_page_by_path function. This function returns an object with the post data when given a slug, and you can then access the ID of the post using the ID property of the object. Here’s an example of how you can use this function: This code will get…
Developing software requires a lot of attention to detail, and running background services can often be a hassle. However, that’s where Porter comes in. Porter is a command line tool that makes it easy to run background services with only a few configuration lines. With Porter, you can spin up your development background processes with ease, allowing you to focus…
Tạo proxy server với Tor và Privoxy để crawl website mà không lo bị chặn Mở đầu Cuộc chiến giữa những người quản trị website và những web crawler là những cuộc chiến không hồi kết. Một website chặn web crawler bằng cách chặn địa chỉ IP của nó. Vậy thì nếu crawler có thật nhiều IP là sẽ không…