Answer the question
In order to leave comments, you need to log in
How to organize files when there is a public part and an admin panel?
Am I correct if I think that the best solution would be to divide the areas of responsibility as much as possible and duplicate the code to a certain extent? Or am I mistaken?
Http/
....Controllers/
........Admin/
............PostController.php
........Site/
....... .....PostController.php
....Requests/
........Admin/
............StorePostRequest.php
........... .UpdatePostRequest.php
........Site/
............StorePostRequest.php
............UpdatePostRequest.php
....Resources/
........Admin/
............PostResource.php
........Site/
............PostResource.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question