Laravel route not working for some condition - php

i have installed laravel in wamp...here is my routes.php code ..
Route::get('/',array('uses'=>'DirController#ShowLogin'));
above code works fine by displaying login page but the below code does not work...
Route::get('login',array('uses'=>'DirController#ShowLogin'));
i get an error message public/login was not found on this server. anyway to fix this???

There is something wrong with your .htaccess file. All requests should be directed to public/index.php
You may want to look at the documentation: http://laravel.com/docs/installation#pretty-urls

Related

InvalidArgumentException View [login] not found

I cannot access my login form on localhost getting this error and I really don't know where to look more for some setting issue which can cause the problem.
I mentioned that on-line the website and form is running just fine but localhost
The error is keep telling me that:
View [login] not found. (View: C:\xampp\htdocs\cicobella\resources\views\auth\login.blade.php)
login was not found.
Are you sure the view exists and is a .blade.php file?
But I have checked and the file is present in there having this code line1: #extends('adminlte::login')
.env is created website everything is functional but the login form
Please any help. Thank you in advance
route list
I had the same issue, I found the solution here:
https://www.tutorialfor.com/questions-304299.htm
Try using:
#extends('adminlte::auth.login')
Instead of:
#extends('adminlte::login')
This worked for me!
Hi all I was able to fix this seems that the github clone was corrupted, once I backed up my website and replace all files everything came back to normal

Why is the auth/login path returning 404 error?

I am new to Codeigniter and I have recently started a project using Codeigniter v3.10 and the Ion-Auth library for user actions.
When I try to access the login page base_url/auth/login I get a 404 error.How can I troublehsoot/solve this? I don't see anything in my network tab in the browser.
I copied and configured the files as presented in user docs.
Thank you in advance
base_url/index.php/auth/login
or use .htaccess to remove index.php

How to access my-domain/admin in laravel?

Route::get('/admin', 'Backend\HomeController#index')->name('admin.home');
is from routes/web.php and it's not working online. It's fine in local
Route::get('/superadmin', 'Backend\HomeController#index')->name('admin.home');
or any name except 'admin' is working online and local.
But I've already used /admin in my project in many places.
That's why I can't use /superadmin.
Please Help.
website backend:
http://ischebazar.com/admin
login:
http://ischebazar.com/admin/login is working.
I can't comment so I need to post an answer for this.
What do you mean by it does not work? Does it show you the laravel 404 page, a server error or a blank page?
If it shows you the laravel 404 page try clearing the route cache: php artisan route:clear.
If it's a blank page, try checking if you have a folder called admin in the document root of the project.
For a server error I can't guess whats wrong but you can provide additional information if this is the case.
Try executing the following command to clear out cache,
php artisan config:cache

Zend framework URLs not working in local environment

I finally got a basic framework set up and working, however now when I wish to add an action in the 'IndexController.php', it doesn't seem to be working.
I used the following terminal command to add an "about" action:
zf create action about index
It appears that worked, as I opened 'IndexController.php' back up and the new action function is there. And a corresponding 'about.phtml' file was created in 'views/scripts/index', alongside 'index.phtml' that was already there.
When I access the index at
http://localhost3:8888/
the page opens properly.
However if I now try to access the about page at
http://localhost3:8888/index/about
I get a "404 not found" error.
Any ideas?
Looks like a mod_rewrite problem.
Try http://localhost3:8888/index.php/index/about. If it works, then it definitely means that mod_rewrite wasn't correctly set up.

Symfony Backend showing 404

I have generated the Backend Application for the Symfony(1.4 and ORM Propel) project, in my Production env. But on calling the URL as http://www.mydomain.com/backend.php it is showing 404. Is there any config error or something like that..
Look inside your web folder and make sure that backend.php actually exists there, it might have been named something else [typo maybe]. Does mydomain.com work ?
Update
Disable/rename your .htaccess file temporarily and see if this fixes it. It looks like mod_rewrite is catching "backend.php" and passing it on as a module name.
The Problem was due to the Permission of the file i.e backend.php. I have changed the Owner/Group permission and the backend app started working. If any one had this kind of a problem, please check the file permissions, might help!
For rendering 404 page, the third parameter in your front controller must be false.
Like this:
ProjectConfiguration::getApplicationConfiguration('backend', 'dev', false);

Categories