Tutorials for Developers & Sysadmins

Step-by-step guides for the work we actually do — Laravel, PHP, WordPress, MySQL, Linux servers, and the occasional rabbit hole. Every command has been run on a real machine; nothing is theoretical.

How to Retrieve Inputs with a Specific Prefix in Laravel Request

Laravel request inputs with prefix: filter request()->all() by Str::startsWith. When array-style items[] names are cleaner, wildcard validation, safe row writes.

how7o

How to Delete Files from the Public Folder in Laravel

Laravel delete file public folder with File::delete(public_path(...)). Covers single/multi-file, File vs Storage vs unlink, and safe directory-level cleanup.

how7o

How to Fix cURL Error 60 SSL Certificate Problem in Laravel

Laravel cURL error 60 SSL certificate fix: point php.ini curl.cainfo and openssl.cafile at a fresh CA bundle. Why 'verify' =>…

how7o

Fix “403 Forbidden” on Laravel Shared Hosting

Laravel 403 forbidden on shared hosting: add a root .htaccess rewrite into public/ or change the document root. Why it…

how7o

How to Set a Global Variable for Laravel Views

Laravel global variable for views: View::share in AppServiceProvider or View::composer with a layouts.* wildcard. Class composers and caching the expensive…

how7o

How to Get Config Variables in Laravel

Laravel get config variable with config('app.name') or Config::get(). Why config() beats env() in production, runtime overrides, and the config:cache rebuild…

how7o

How to Call a Controller Method from Another Controller in Laravel

Laravel call controller from another controller with app() or constructor injection. Why new breaks, when to redirect instead, and when…

how7o

Fix “Class Carbon not found” in Laravel

Laravel carbon not found: add use Carbon\Carbon or use Illuminate\Support\Carbon at the top of the controller. Covers namespace resolution and…

how7o

How to Fix “Unknown column ‘CONCAT'” in Laravel

Laravel unknown column CONCAT fix: wrap SQL expressions in DB::raw() or use selectRaw() so Eloquent stops escaping them as identifiers.…

how7o

Laravel Validate Input to Specific Values (in Rule)

Laravel validate in rule: restrict input to an allow-list with in:val1,val2 or Rule::in([...]). Covers case-sensitivity, separator pitfalls, and PHP 8.1…

how7o