laravel auth routes problem: login and register links don't workRoute doesn't work on my laravel 5.1 projectHow to protect register with auth midleware in laravel 5.2Laravel 5.4 Register notfoundhttpexceptionAuth middleware in Laravel 5.4laravel 5.4 auth facade does not workLaravel 5.4 Auth::attempt works, Cannot pass auth middlewareLaravel 5.5 localization for login routesLaravel login use make:authUsing laravel default auth, can register but can't reloginLaravel cannot route to /admin

What does the behaviour of water on the skin of an aircraft in flight tell us?

Glitch in AC sine wave interfering with phase cut dimming

Why doesn't the Earth's acceleration towards the Moon accumulate to push the Earth off its orbit?

Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?

What does "Marchentalender" on the front of a postcard mean?

Split polygon using another polygon in QGIS

Can't use numexpr in horizontal mode

Where can I find the list of all tendons in the human body?

What does it mean when you think without speaking?

shutdown at specific date

Why does the UK have more political parties than the US?

What's the connection between "kicking a pigeon" and "how a bill becomes a law"?

Yandex Programming Contest: Alarms

Transform the partial differential equation with new independent variables

How to prevent bad sectors?

Can non-English-speaking characters use wordplay specific to English?

Boots: Does light damage affect waterproofing?

Is there any use case for the bottom type as a function parameter type?

Is it possible to change original filename of an exe?

Leading and Suffering Numbers

Is there an evolutionary advantage to having two heads?

What is a subpixel in Super Mario Bros, and how does it relate to wall clipping?

Tic-Tac-Toe for the terminal

Future enhancements for the finite element method



laravel auth routes problem: login and register links don't work


Route doesn't work on my laravel 5.1 projectHow to protect register with auth midleware in laravel 5.2Laravel 5.4 Register notfoundhttpexceptionAuth middleware in Laravel 5.4laravel 5.4 auth facade does not workLaravel 5.4 Auth::attempt works, Cannot pass auth middlewareLaravel 5.5 localization for login routesLaravel login use make:authUsing laravel default auth, can register but can't reloginLaravel cannot route to /admin






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















I just made a fresh laravel project from scratch and the first thing I did was, I executed



php artisan make:auth


then migrate it



php artisan migrate


and open the project in the browser and hit login it says




Sorry, the page you are looking for could not be found.




Here is the error screenshot:



enter image description here



and here is the routes/web.php



<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function ()
return view('welcome');
);

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');









share|improve this question



















  • 1





    can you share your routes.php file?

    – Danyal Sandeelo
    Mar 24 at 9:03







  • 2





    What's inside your routes?

    – Qirel
    Mar 24 at 9:03






  • 2





    share your routes file. so we can easily find your problem

    – Waqas Ahmad
    Mar 24 at 9:07






  • 1





    and what is your project url?

    – Waqas Ahmad
    Mar 24 at 9:12











  • Localhost:8080/bsms/public @John

    – abokor hassan
    Mar 24 at 9:16

















2















I just made a fresh laravel project from scratch and the first thing I did was, I executed



php artisan make:auth


then migrate it



php artisan migrate


and open the project in the browser and hit login it says




Sorry, the page you are looking for could not be found.




Here is the error screenshot:



enter image description here



and here is the routes/web.php



<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function ()
return view('welcome');
);

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');









share|improve this question



















  • 1





    can you share your routes.php file?

    – Danyal Sandeelo
    Mar 24 at 9:03







  • 2





    What's inside your routes?

    – Qirel
    Mar 24 at 9:03






  • 2





    share your routes file. so we can easily find your problem

    – Waqas Ahmad
    Mar 24 at 9:07






  • 1





    and what is your project url?

    – Waqas Ahmad
    Mar 24 at 9:12











  • Localhost:8080/bsms/public @John

    – abokor hassan
    Mar 24 at 9:16













2












2








2








I just made a fresh laravel project from scratch and the first thing I did was, I executed



php artisan make:auth


then migrate it



php artisan migrate


and open the project in the browser and hit login it says




Sorry, the page you are looking for could not be found.




Here is the error screenshot:



enter image description here



and here is the routes/web.php



<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function ()
return view('welcome');
);

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');









share|improve this question
















I just made a fresh laravel project from scratch and the first thing I did was, I executed



php artisan make:auth


then migrate it



php artisan migrate


and open the project in the browser and hit login it says




Sorry, the page you are looking for could not be found.




Here is the error screenshot:



enter image description here



and here is the routes/web.php



<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function ()
return view('welcome');
);

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');






php laravel authentication routes






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 12:07









simbo1905

3,3673356




3,3673356










asked Mar 24 at 9:00









abokor hassanabokor hassan

718




718







  • 1





    can you share your routes.php file?

    – Danyal Sandeelo
    Mar 24 at 9:03







  • 2





    What's inside your routes?

    – Qirel
    Mar 24 at 9:03






  • 2





    share your routes file. so we can easily find your problem

    – Waqas Ahmad
    Mar 24 at 9:07






  • 1





    and what is your project url?

    – Waqas Ahmad
    Mar 24 at 9:12











  • Localhost:8080/bsms/public @John

    – abokor hassan
    Mar 24 at 9:16












  • 1





    can you share your routes.php file?

    – Danyal Sandeelo
    Mar 24 at 9:03







  • 2





    What's inside your routes?

    – Qirel
    Mar 24 at 9:03






  • 2





    share your routes file. so we can easily find your problem

    – Waqas Ahmad
    Mar 24 at 9:07






  • 1





    and what is your project url?

    – Waqas Ahmad
    Mar 24 at 9:12











  • Localhost:8080/bsms/public @John

    – abokor hassan
    Mar 24 at 9:16







1




1





can you share your routes.php file?

– Danyal Sandeelo
Mar 24 at 9:03






can you share your routes.php file?

– Danyal Sandeelo
Mar 24 at 9:03





2




2





What's inside your routes?

– Qirel
Mar 24 at 9:03





What's inside your routes?

– Qirel
Mar 24 at 9:03




2




2





share your routes file. so we can easily find your problem

– Waqas Ahmad
Mar 24 at 9:07





share your routes file. so we can easily find your problem

– Waqas Ahmad
Mar 24 at 9:07




1




1





and what is your project url?

– Waqas Ahmad
Mar 24 at 9:12





and what is your project url?

– Waqas Ahmad
Mar 24 at 9:12













Localhost:8080/bsms/public @John

– abokor hassan
Mar 24 at 9:16





Localhost:8080/bsms/public @John

– abokor hassan
Mar 24 at 9:16












2 Answers
2






active

oldest

votes


















1














Maybe it works for you



First, go to the project directory and open the public folder and copy .htaccess and index.php to the main directory.
enter image description here



And Paste it Here in the Main Directory.
enter image description here



Then open the index.php and replace



require __DIR__.'/../vendor/autoload.php';



and $app = require_once __DIR__.'/../bootstrap/app.php';



with require __DIR__.'/vendor/autoload.php';



and



$app = require_once __DIR__.'/bootstrap/app.php';



and save it. then run the project in the browser



Localhost:8080/bsms/login.






share|improve this answer























  • i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

    – abokor hassan
    Mar 24 at 10:15


















0














Use this command:



php artisan serve


If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000



Later you can check in browser like this: http://localhost:8000/login




If you have to check without artisan serve



you can check like this(bsms is your laravel-project-name):http://localhost/bsms/public/login



you must have a configuration like this in your .htaccess file






share|improve this answer

























  • But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

    – abokor hassan
    Mar 24 at 9:26











  • php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

    – Udhav Sarvaiya
    Mar 24 at 9:32











  • yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

    – abokor hassan
    Mar 24 at 9:37











  • I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

    – Udhav Sarvaiya
    Mar 24 at 9:46











  • i tried this but the same error. i solved my problem thanks man for ur contribution!

    – abokor hassan
    Mar 24 at 10:26











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322159%2flaravel-auth-routes-problem-login-and-register-links-dont-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Maybe it works for you



First, go to the project directory and open the public folder and copy .htaccess and index.php to the main directory.
enter image description here



And Paste it Here in the Main Directory.
enter image description here



Then open the index.php and replace



require __DIR__.'/../vendor/autoload.php';



and $app = require_once __DIR__.'/../bootstrap/app.php';



with require __DIR__.'/vendor/autoload.php';



and



$app = require_once __DIR__.'/bootstrap/app.php';



and save it. then run the project in the browser



Localhost:8080/bsms/login.






share|improve this answer























  • i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

    – abokor hassan
    Mar 24 at 10:15















1














Maybe it works for you



First, go to the project directory and open the public folder and copy .htaccess and index.php to the main directory.
enter image description here



And Paste it Here in the Main Directory.
enter image description here



Then open the index.php and replace



require __DIR__.'/../vendor/autoload.php';



and $app = require_once __DIR__.'/../bootstrap/app.php';



with require __DIR__.'/vendor/autoload.php';



and



$app = require_once __DIR__.'/bootstrap/app.php';



and save it. then run the project in the browser



Localhost:8080/bsms/login.






share|improve this answer























  • i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

    – abokor hassan
    Mar 24 at 10:15













1












1








1







Maybe it works for you



First, go to the project directory and open the public folder and copy .htaccess and index.php to the main directory.
enter image description here



And Paste it Here in the Main Directory.
enter image description here



Then open the index.php and replace



require __DIR__.'/../vendor/autoload.php';



and $app = require_once __DIR__.'/../bootstrap/app.php';



with require __DIR__.'/vendor/autoload.php';



and



$app = require_once __DIR__.'/bootstrap/app.php';



and save it. then run the project in the browser



Localhost:8080/bsms/login.






share|improve this answer













Maybe it works for you



First, go to the project directory and open the public folder and copy .htaccess and index.php to the main directory.
enter image description here



And Paste it Here in the Main Directory.
enter image description here



Then open the index.php and replace



require __DIR__.'/../vendor/autoload.php';



and $app = require_once __DIR__.'/../bootstrap/app.php';



with require __DIR__.'/vendor/autoload.php';



and



$app = require_once __DIR__.'/bootstrap/app.php';



and save it. then run the project in the browser



Localhost:8080/bsms/login.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 24 at 9:49









Waqas AhmadWaqas Ahmad

22813




22813












  • i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

    – abokor hassan
    Mar 24 at 10:15

















  • i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

    – abokor hassan
    Mar 24 at 10:15
















i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

– abokor hassan
Mar 24 at 10:15





i tried this but this isn't working but any way thanks man, imma stick with your answer up there little longer, thats work fine for me

– abokor hassan
Mar 24 at 10:15













0














Use this command:



php artisan serve


If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000



Later you can check in browser like this: http://localhost:8000/login




If you have to check without artisan serve



you can check like this(bsms is your laravel-project-name):http://localhost/bsms/public/login



you must have a configuration like this in your .htaccess file






share|improve this answer

























  • But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

    – abokor hassan
    Mar 24 at 9:26











  • php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

    – Udhav Sarvaiya
    Mar 24 at 9:32











  • yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

    – abokor hassan
    Mar 24 at 9:37











  • I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

    – Udhav Sarvaiya
    Mar 24 at 9:46











  • i tried this but the same error. i solved my problem thanks man for ur contribution!

    – abokor hassan
    Mar 24 at 10:26















0














Use this command:



php artisan serve


If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000



Later you can check in browser like this: http://localhost:8000/login




If you have to check without artisan serve



you can check like this(bsms is your laravel-project-name):http://localhost/bsms/public/login



you must have a configuration like this in your .htaccess file






share|improve this answer

























  • But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

    – abokor hassan
    Mar 24 at 9:26











  • php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

    – Udhav Sarvaiya
    Mar 24 at 9:32











  • yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

    – abokor hassan
    Mar 24 at 9:37











  • I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

    – Udhav Sarvaiya
    Mar 24 at 9:46











  • i tried this but the same error. i solved my problem thanks man for ur contribution!

    – abokor hassan
    Mar 24 at 10:26













0












0








0







Use this command:



php artisan serve


If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000



Later you can check in browser like this: http://localhost:8000/login




If you have to check without artisan serve



you can check like this(bsms is your laravel-project-name):http://localhost/bsms/public/login



you must have a configuration like this in your .htaccess file






share|improve this answer















Use this command:



php artisan serve


If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000



Later you can check in browser like this: http://localhost:8000/login




If you have to check without artisan serve



you can check like this(bsms is your laravel-project-name):http://localhost/bsms/public/login



you must have a configuration like this in your .htaccess file







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 24 at 9:27

























answered Mar 24 at 9:22









Udhav SarvaiyaUdhav Sarvaiya

2,78392131




2,78392131












  • But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

    – abokor hassan
    Mar 24 at 9:26











  • php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

    – Udhav Sarvaiya
    Mar 24 at 9:32











  • yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

    – abokor hassan
    Mar 24 at 9:37











  • I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

    – Udhav Sarvaiya
    Mar 24 at 9:46











  • i tried this but the same error. i solved my problem thanks man for ur contribution!

    – abokor hassan
    Mar 24 at 10:26

















  • But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

    – abokor hassan
    Mar 24 at 9:26











  • php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

    – Udhav Sarvaiya
    Mar 24 at 9:32











  • yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

    – abokor hassan
    Mar 24 at 9:37











  • I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

    – Udhav Sarvaiya
    Mar 24 at 9:46











  • i tried this but the same error. i solved my problem thanks man for ur contribution!

    – abokor hassan
    Mar 24 at 10:26
















But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

– abokor hassan
Mar 24 at 9:26





But I'm using xampp and everything is working fine but the login and register links dont works, you know they supposed to work after running and auth command right?

– abokor hassan
Mar 24 at 9:26













php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

– Udhav Sarvaiya
Mar 24 at 9:32





php artisan make:auth command will create all of the views you need for authentication and place them in the resources/views/auth directory.

– Udhav Sarvaiya
Mar 24 at 9:32













yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

– abokor hassan
Mar 24 at 9:37





yes, exactly, but my error is when i hit login or register it doesnt work i mean it says Sorry, the page you are looking for could not be found.

– abokor hassan
Mar 24 at 9:37













I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

– Udhav Sarvaiya
Mar 24 at 9:46





I think your fresh project laravel installed not successfully, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project --prefer-dist laravel/laravel blog please, installed fresh laravel again

– Udhav Sarvaiya
Mar 24 at 9:46













i tried this but the same error. i solved my problem thanks man for ur contribution!

– abokor hassan
Mar 24 at 10:26





i tried this but the same error. i solved my problem thanks man for ur contribution!

– abokor hassan
Mar 24 at 10:26

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322159%2flaravel-auth-routes-problem-login-and-register-links-dont-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript