I want to rename a controller in Laravel, its Model and its migrations.
I can do it manually, but the problem is that I'll spend a significant amount of time (especially renaming the migrations files'name, the content inside the migration files, and the table 'migrations' in which Laravel keeps track of the migrations).
I can do it now as I have few migrations. So far, the app is small (I just created it to get started with Laravel
); I have only a dashboard, a user controller, and an articles controller(that allows users to create and to edit their articles, and allows guests to only see the articles). However, what If that happens again and I have, for example, 30 migrations? I may accidentally mess up everything and cause bugs.
Can I rename a controller automatically? If yes, how I do that? If not, is there something I have to pay special attention when renaming the controller manually? So it won't cause problems after renaming it.
Note: I'm a newbie in Laravel and in StackOverflow, so I'm sorry if my question seems a fool; just don't be rude with me.