Minimal usage of pyenv and venv
Introduction
I'm developing with Python + Django, but if I'm in charge of multiple projects, the versions of Python, Django, and other libraries will differ depending on the project.
In some cases, the same Python version has different versions of different libraries, so versioning with pyenv and venv is very helpful. This time, I will focus on the minimum necessary functions and describe how to use it.
Deploy Environment
OS:macOS Big Sur(version 11.2.2)
Shell...
Basic Python
1364
Sử dụng Global Variable trong Laravel
Trong bài viết này mình sẽ chia sẻ cách sử dụng biến toàn cục (global variable) trong Laravel.
Bạn có thể định nghĩa biến toàn cục với giá trị string, integer, array và có thể truy cập biến đó ở tất cả các controller, views, blade, middleware trong laravel.
Khi làm dự án chúng ta thường phải định nghĩa một số biến toàn cục như number_records_per_page, user_type, site_url...sau đó mọi người có thể sử...
Laravel
2528