yep your problem is now fix. :)
what did you again?I see there was routcontroller error.
Its back to the old error, you can see the .env again, etc. No way to help you, when you are not listening. I'm sorry.
I ran into the same error when learning Laravel 5.4, using this online course: https://www.youtube.com/watch?v=neSHAWdE44c.
But the error occurs on a Laravel 5.4 install within xampp on a Windows 7 system.
I get the error when trying to create the PostsController as well as trying to do a migration as shown in the beginning of the above mentioned video; up till then I was able to follow all steps of this course without any problems.
Any help solving this would be appreciated. But please bear in mind I am a Laravel newbie :-)
Hi, it doesn't matter if u have xampp running on that system @Cannedit.
You have to start the server that comes with Laravel: php artisan serve and than go to localhost:8000
@Ishatanjeeb sir how can i fix routing error
@sjess sir for the shairing i have upload my .env file on this link http://pantexmedical.co.uk/test/.env
If you don't mind i give u my ftp you can find the exect error and please fix it i am confused because i am not a professional i am student.
Did you run the composer install..??
and proper permission for public and vendor folder.?
@sjess but it comes with a Laravel install, right? and I installed Laravel properly on xampp and I was able to create a controller using artisan before, so apparently in the meantime something went wrong; so is there a way to re-install artisan?
run composer dump-autoload
Because of this post, I recently installed laravel 5.4 (to prove a point), then turned around and put it on godaddy hosting following the very guide I said to use
http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/
The only thing I changed in production is the database setting naturally and in the .env file changed line
APP_DEBUG=false
Everything is working 100%, zero problems.
OP, just follow instructions.
@ayimdomnic sorry, but "composer dump-autoload" didn't solve my problem
@jlrdw sorry, but for me that problem already exists on a local install (in xampp on Windows), so I am not even ready to transfer to shared hosting yet
I guess I better redo the whole thing from start
@cannedit I think there are some missing files in your vendor folder. Kindly rm -rf vendor then run composer install
@ayimdomnic thanks for the suggestion; I followed your instructions, but at the end of the composer install, the php artisan optimize part, I got a whole bunch of errors again and the last line was: "Script php artisan optimize handling the post-install-cmd event returned with error code 255"
What's weird is a simple path resolve would probably fix this whole thing
../
To
../../
I tried my best to help and to have OP follow the guide. Just to test I followed the guide myself I have a perfectly working laravel 5.4 site on GoDaddy.
What Version of Laravel are you working with?
run this to bypass the post-install scripts
composer update --no-scripts
Then: composer dump-autoload -o
If the case here is with shared hosting this should help.
1. Install and setup laravel on your local (meaning you local machine)
2.Once done, copy all files to your hosting.
3.Create an .htaccess file on your laravel's root directory. This is to access
it without the "public" on the url.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
@ayimdomnic thanks for the new suggestions, I will keep them in mind, but I did the whole thing anew, on a newer version of xampp (5.6.31), and then I didn't ran into the issue anymore; btw I am using Laravel 5.4.32.
@Cannedit if you are developing on windows then checkout laragon.. It automates the whole process and makes laravel development quite easy and time saving
Please or to participate in this conversation.