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.
Laravel request inputs with prefix: filter request()->all() by Str::startsWith. When array-style items[] names are cleaner, wildcard validation, safe row writes.
Laravel delete file public folder with File::delete(public_path(...)). Covers single/multi-file, File vs Storage vs unlink, and safe directory-level cleanup.
Laravel cURL error 60 SSL certificate fix: point php.ini curl.cainfo and openssl.cafile at a fresh CA bundle. Why 'verify' =>…
Laravel 403 forbidden on shared hosting: add a root .htaccess rewrite into public/ or change the document root. Why it…
Laravel global variable for views: View::share in AppServiceProvider or View::composer with a layouts.* wildcard. Class composers and caching the expensive…
Laravel get config variable with config('app.name') or Config::get(). Why config() beats env() in production, runtime overrides, and the config:cache rebuild…
Laravel call controller from another controller with app() or constructor injection. Why new breaks, when to redirect instead, and when…
Laravel carbon not found: add use Carbon\Carbon or use Illuminate\Support\Carbon at the top of the controller. Covers namespace resolution and…
Laravel unknown column CONCAT fix: wrap SQL expressions in DB::raw() or use selectRaw() so Eloquent stops escaping them as identifiers.…
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…
Sign in to your account