Server.php and index.php are not the same file at all, get a fresh content of these ones from https://github.com/laravel/laravel
Aug 10, 2015
7
Level 13
Could not open input file: artisan after messing up with the files
I was trying to remove the /public from the URL and found a StackOverflow answered that said that you could take the .htaccess from the /public folder and place it at the root, and then rename your server.php to index.php.
I tried it and it worked, but I noticed that the artisan commands stopped working.
I reverted back to the initial state, by deleting the .htaccess in the root and renaming index.php to server.php, but it's still not working, I get this error :
Could not open input file: artisan
Is there anything I can do to fix this, or do I have to start a new project from scratch and copy over my files?
Please or to participate in this conversation.