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

marciofornari's avatar

Create a clone of Project

Hello Everybody, I copied my project folder to other folder, example (project_laravel) and i have now (project_laravel_dev). My project_laravel it's work fine, but my project_laravel_dev doesn't work correctly. My project project_laravel_dev connect with other database. I can to do login, logout, but when i need save a new register, show me this error: TokenMismatchException in VerifyCsrfToken.php and the Auth() is doesn't work too.

Wich is the best way to clone one project to other to connect in other database to test ??

0 likes
2 replies
tisuchi's avatar

After copied, have you run

composer update
4 likes
marciofornari's avatar

i run composer update, but still doesn't work, i can to do login with the user in other database but show this error yet

(4/4) ErrorException Trying to get property of non-object

{{Auth::user()->name_user}}

Please or to participate in this conversation.