PHP Frameworks (Laravel, Sym.)

2 days ago
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

All Discussions

-

Where is storage_path('/app/public/') located

I want to run my code via command where i placed a file in folder app/public/results

And i want to access this file with this code:

if ( ! File::exists(storage_path('/app/public/examResult/' . $this->argument('file'))) ) {dd('Not found this file!');}


But its printing not found this file.

Where are these files actually stored where code can find them ?

-
PHP Frameworks (Laravel, Sym.)
-

Prevent telescope migrations from running on production?

I've recently upgraded to Laravel 11.

One of the steps in the upgrade guide is to publish telescope migrations since telescope doesn't load them automatically any more.

The problem is, if I add telescope migration to my codebase, it runs on production deploys. Those tables shouldn't be on production database.

How to you manage this situation?

-
PHP Frameworks (Laravel, Sym.)
-

Laravel eloquent N+1 problem

How do I handle N+1 query problems in Eloquent?

-
PHP Frameworks (Laravel, Sym.)
-

Optimisation in Laravel

What’s the best way to optimize Laravel for high traffic?

-
PHP Frameworks (Laravel, Sym.)
-

pluck() vs get() vs select()

When should I use pluck(), select(), or get()in Laravel ?

-
PHP Frameworks (Laravel, Sym.)
-

Testing in Laravel: Beyond assertStatus(200) - What Should I Be Testing?

  1. What's a good starting point for writing tests in a new Laravel project? What are the "must-have" tests?
  2. How do you decide when to use a mock vs. a stub?
  3. What are some examples of meaningful assertions beyond just checking HTTP status codes?
  4. What testing strategies have helped you the most in a production environment?
-
PHP Frameworks (Laravel, Sym.)
-

Laravel Queues: Why Aren't My Jobs Actually Running?!

  1. What's the best queue driver to use for different scenarios (e.g., small projects, high-volume applications)?
  2. How do you monitor your queue workers in production?
  3. What strategies do you use to prevent "poison pill" jobs from crashing your queue workers?
  4. What's a good strategy to handle dependencies inside jobs, especially ones that are injected via constructor injection?
-
PHP Frameworks (Laravel, Sym.)
-

Eloquent Relationships in Laravel

Can someone explain the differences between hasOne and belongsTo ? Also any good strategies for visualising Eloquent relationships to help me understand the data model?

And what's your go-to approach for debugging N+1 query issues in Laravel?

-
PHP Frameworks (Laravel, Sym.)

Post your issue

Category
Topic
Description
Your post has been created! We are redirecting you to your live post. This might take a few seconds.
Thank you! Your post has been received. Once approved, you will receive an email with a link to your live post.
Oops! Something went wrong while submitting the form.

© 2025 by CodeBloom Education Ltd