GyaanSetu PHP

PHP, Laravel and WordPress.

39 articlesDeep, practical knowledge

Laravel ਵਿੱਚ BayarCash ਨੂੰ ਸਹੀ ਤਰੀਕੇ ਨਾਲ ਸੈੱਟਅੱਪ ਕਰਨਾ

Laravel ਵਿੱਚ BayarCash ਨੂੰ ਸਹੀ ਤਰੀਕੇ ਨਾਲ ਸੈੱਟਅੱਪ ਕਰਨਾ। ਜੇਕਰ ਤੁਸੀਂ ਮਲੇਸ਼ੀਆਈ ਬਾਜ਼ਾਰ ਲਈ SaaS ਬਣਾਉਂਦੇ ਹੋ, ਤਾਂ ਤੁਹਾਨੂੰ ਅੰਤ ਵਿੱਚ FPX ਦੀ ਲੋੜ ਪਵੇਗੀ। BayarCash ਇੱਕ ਆਮ ਚੋਣ ਹੈ। SDK ਸਮੱਸਿਆ ਨਹੀਂ ਹੈ। T…

PHP · 2 min read

ਮਾਈਗ੍ਰੇਸ਼ਨਾਂ ਜੋ ਪ੍ਰੋਡਕਸ਼ਨ ਨੂੰ ਖਰਾਬ ਨਹੀਂ ਕਰਨਗੀਆਂ

ਮਾਈਗ੍ਰੇਸ਼ਨਾਂ ਜੋ ਪ੍ਰੋਡਕਸ਼ਨ ਨੂੰ ਖਰਾਬ ਨਹੀਂ ਕਰਨਗੀਆਂ। ਇੱਕ ਮਾਈਗ੍ਰੇਸ਼ਨ ਤੁਹਾਡੀ ਮਸ਼ੀਨ 'ਤੇ ਬਿਲਕੁਲ ਸਹੀ ਚੱਲਦੀ ਹੈ। ਤੁਸੀਂ ਇਸਨੂੰ ਸ਼ੁੱਕਰਵਾਰ ਸ਼ਾਮ 6 ਵਜੇ ਡਿਪਲੋਏ ਕਰਦੇ ਹੋ ਕਿਉਂਕਿ ਇਹ ਛੋਟੀ ਲੱਗਦੀ ਹੈ। ਫਿਰ ਡਿਪਲੋਇਮੈਂਟ ਰੁਕ ਜਾਂਦੀ ਹੈ। ਜਾਂ ਇਸ ਤੋਂ ਵੀ ਮਾੜਾ,…

PHP · 2 min read

The Handshake Tax

The Handshake Tax Your Magento integration might be slow because of a hidden network cost. I once ran a product export that talked to a pricing API. One product worked fast. The f…

PHP · 2 min read

Open Closed Principle (OCP)

Open Closed Principle (OCP) Software entities should be open for extension but closed for modification. This means you add new features without changing existing code. If you chan…

PHP · 2 min read

BLADE ਵਿੱਚ IF IS TAILWIND ਨੂੰ ਖਤਮ ਕਰਨਾ

BLADE ਵਿੱਚ IF IS TAILWIND ਨੂੰ ਖਤਮ ਕਰਨਾ। ਆਪਣੇ Blade templates ਵਿੱਚ CSS classes ਬਦਲਣ ਲਈ @if statements ਦੀ ਵਰਤੋਂ ਕਰਨਾ ਬੰਦ ਕਰੋ। ਜੇਕਰ ਤੁਸੀਂ ਆਪਣੇ component ਦੇ ਅੰਦਰ @if($isTailwind) ਜਾਂ @elseif($isBootstrap) ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋ…

PHP · 2 min read

RepoWrapped: ਇੱਕ GitHub Repo ਲਈ Spotify Wrapped

RepoWrapped: ਇੱਕ GitHub Repo ਲਈ Spotify Wrapped। ਮੈਂ GitHub repos ਲਈ Spotify Wrapped ਬਣਾਉਣਾ ਚਾਹੁੰਦਾ ਸੀ। ਵਿਚਾਰ ਸਧਾਰਨ ਸੀ: ਇੱਕ ਯੂਜ਼ਰ ਅਤੇ ਇੱਕ ਰੈਪੋ ਚੁਣੋ, ਫਿਰ ਉਨ੍ਹਾਂ ਦੇ ਅੰਕੜੇ ਦਿਖਾਓ। ਕੁੱਲ ਕਮਿਟ…

PHP · 2 min read

ਤੁਹਾਡਾ ਕੰਟਰੋਲਰ ਗਲਤ ਕੰਮ ਕਰ ਰਿਹਾ ਹੈ

ਤੁਹਾਡਾ ਕੰਟਰੋਲਰ ਗਲਤ ਕੰਮ ਕਰ ਰਿਹਾ ਹੈ। ਆਪਣਾ ਕੰਟਰੋਲਰ ਖੋਲ੍ਹੋ। ਇੱਕ 'store' ਮੈਥਡ ਲੱਭੋ। ਕੀ ਇਸ ਵਿੱਚ ਕੋਡ ਦੀਆਂ 40 ਲਾਈਨਾਂ ਹਨ? ਕੀ ਤੁਹਾਨੂੰ ਇੱਕ ਵੱਡਾ ਵੈਲੀਡੇਸ਼ਨ ਬਲਾਕ, ਕਈ 'if' ਸਟੇਟਮੈਂਟਾਂ, ਪਰ... ਦਿਖਾਈ ਦੇ ਰਹੀਆਂ ਹਨ?

PHP · 2 min read

Building Newsroom AI Modules in PHP

Building Newsroom AI Modules in PHP Most people think AI in a newsroom means one big chat box. This is a mistake. That model leads to features that people use once and then ignore…

PHP · 2 min read

PSR 4 ਦੀ ਮਦਦ ਨਾਲ PHP 'Class Not Found' ਗਲਤੀ ਨੂੰ ਹੱਲ ਕਰੋ

PSR 4 ਦੀ ਮਦਦ ਨਾਲ PHP 'Class Not Found' ਗਲਤੀ ਨੂੰ ਹੱਲ ਕਰੋ। Procedural ਕੋਡ ਤੋਂ OOP ਵੱਲ ਜਾਣਾ ਅਕਸਰ ਇੱਕ ਗੰਭੀਰ ਗਲਤੀ ਦਾ ਕਾਰਨ ਬਣਦਾ ਹੈ: Class not found. ਇਹ ਉਦੋਂ ਹੁੰਦਾ ਹੈ ਜਦੋਂ PHP ਉਹ ਫਾਈਲ ਨਹੀਂ ਲੱਭ ਸਕਦਾ ਜਿਸ ਵਿੱਚ...

PHP · 2 min read

Laravel: From Version 5 to Today

Laravel: From Version 5 to Today Laravel did not just change. It grew up. If you open an old Laravel 5 project, you see a house with rooms from different decades. It works, but th…

PHP · 2 min read

Mapping WordPress Maintenance Tools

Mapping WordPress Maintenance Tools Comparing WordPress maintenance tools is hard. One source calls a tool "SaaS," while another calls it "self hosted." Most people mix two differ…

PHP · 2 min read

Admin Editable Settings Without Complex Code

Admin Editable Settings Without Complex Code Apps face a constant problem. Some settings belong in a .env file. Other settings must change via an admin panel without a new code de…

PHP · 2 min read

Build The Seam On Day One

Build The Seam On Day One Building a platform for high volume data forces a choice. You need a fast database for long term storage. But setting up a complex system on day one is h…

PHP · 2 min read

Securing AI Agents With Laravel MCP Tools

Securing AI Agents With Laravel MCP Tools Giving an AI agent access to your app via MCP is like handing someone a keyring. If you do not set rules, they might open the wrong doors…

PHP · 2 min read

ਮੈਂ Redis ਵਿੱਚ ਇੱਕ Sliding Window Rate Limiter ਕਿਵੇਂ ਬਣਾਇਆ

ਮੈਂ Redis ਵਿੱਚ ਇੱਕ Sliding Window Rate Limiter ਕਿਵੇਂ ਬਣਾਇਆ। ਸਾਡੀ ਵੀਡੀਓ API ਹਰ ਸ਼ਾਮ 8 ਵਜੇ UTC 'ਤੇ ਕ੍ਰੈਸ਼ ਹੋ ਜਾਂਦੀ ਸੀ। ਇਹ ਅਸਲੀ ਟ੍ਰੈਫਿਕ ਨਹੀਂ ਸੀ। ਕੁਝ ਸਕ੍ਰੈਪਰਾਂ ਨੇ ਸਾਡਾ ਟ੍ਰੈਂਡਿੰਗ ਐਂਡਪੁਆਇੰਟ ਲੱਭ ਲਿਆ ਸੀ ਅਤੇ...

PHP · 2 min read

Dev Log: System Honesty

Dev Log: System Honesty Build systems that tell the truth. A system is only as good as its signals. If your queries hide waste, your health checks lie, or your tools repeat work,…

PHP · 2 min read