Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mexrod's avatar
Level 1

change the namespace path in controller

it's possible to change the namespace path in controller in runtime: example: this is my controller : namespace App\Http\Controllers\tablas; <---- i need to change this folder for other use Session; use App\Http\Controllers\Controller; use Illuminate\Http\Request;

0 likes
4 replies
jlrdw's avatar

What is the problem with your use statements.

tykus's avatar

What is the problem you are actually trying to solve here? Why is changing the namespace the solution that you are trying to pursue?

tisuchi's avatar

@mexrod

it's possible to change the namespace path in controller in runtime

Sorry, but it does not make sense at all!

Please or to participate in this conversation.