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
Related
I'm currently learning symfony.
I would like to display a page I created with MAMP in a browser, but I can't get it to display even if I type in the URL I registered in routes.yaml.
I don't know what the problem is, so I'm having trouble.
Can you please help me?
What I have tried:
Create a controller
php bin/console make:controller
edit route.yaml
home_page:
path: /home_page
controller: App\Controller\HomeController::index
do this command
composer require symfony/apache-pack
Type "localhost:8888/mysite/home_page" into Google Chrome 
Even after doing these, I still get
"Not Found
The requested URL was not found on this server.
The directory created is located at MAMP/htdoc.
Type "localhost:8888" and "localhost:8888/mysite" into browser to view the index.html I have placed.
However, when I enter "localhost:8888/mysite/home_page", I cannot open the twig that I created with "php bin/console make:controller". I can't open twig.
I'm sorry for my bad English. Please help me.
Try with
localhost:8888/mysite/index.php/home_page
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
I've encountered a problem while creating simple apps with Laravel on IIS.
When I create a new Laravel application I can see the Laravel welcome page just fine.
If I create another view in the same folder as the welcome.blade.php (test.blade.php for example), and set up the route for that in routes/web.php I can't navigate to that page in browser. EDIT: When I attempt this I get a 404.
My web.php is as follows:
<?php
Route::get('/', function (){
return view('welcome');
});
Route::get('/test', function (){
return view('test');
});
At first I thought that perhaps the project was not reading web.php, but when I run php artisan route:list the test route is listed.
I thought perhaps that my view didn't work, so I renamed it as welcome.blade.php and that loaded up fine. I just seem to be unable to add a route to any view or anonymous function that isn't mapped to welcome.blade.php
I tried adding a static route.php file into the app directory with the same code, but that made no difference to the result.
I'm sure I must be missing something basic, but I can't seem to put my finger on where I've gone wrong. Would massively appreciate any help you might be able to offer. Thank you.
Right I worked out where I went wrong. I hadn't run artisan serve. Very simple.
If you're having this problem, try navigating to your application root in cmd and then try
php artisan serve
Then navigate to your page using that information.
Thank you to everyone who posted, massively appreciated.
You need to install Url Rewrite in your terminal. Then import the .htaccess file located in your project/public folder.
To install Url Rewrite, you need to install Web Platform Installer (WPI). Once installed, open WPI then search for the keyword "Url Rewrite", then install the first item in the result. Once the download is finished, Url Rewrite will be available in your IIS Manager
I think IIS server maybe blocks test url.
IIS server has such features.
Before time, I remember that I used IIS blacklist url feature.
You may check IIS url block feature.
I have a laravel project which I run from my local apache server directory.
The link for accessing this project is
www.localhost/project.dev/public/index.php
And I have a navigation menu
After I have set the APP_URL in .env file to
http://localhost/blog.dev/public/index.php/
I get no problems while navigating through the About and Contact pages in the project but when I access the Home page the browser goes to the
http://localhost/
but not to the
http://localhost/blog.dev/public/index.php/
How can I fix it? Here are my routes:
Route::get('/', 'PagesController#getIndex');
Route::get('about', 'PagesController#getAbout');
Route::get('contact', 'PagesController#getContact');
I think the best way is to setup a vhost in apache. if you want to work like this in your .env set the APP_URL= http://localhost/blog.dev/public/
Run php artisan serve in command line. The laravel buil-in server will active. And you will able to access your laravel application using correct url as like http://localhost:8000 try this and let me know if you have any problem.
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