Giter Site home page Giter Site logo

Remove the routes, views and translations and set it as an option in the setup, or make a vendor publishing about laravel-cognito-auth HOT 5 OPEN

black-bits avatar black-bits commented on July 16, 2024
Remove the routes, views and translations and set it as an option in the setup, or make a vendor publishing

from laravel-cognito-auth.

Comments (5)

bartmcleod avatar bartmcleod commented on July 16, 2024

I can not reproduce this. Can list routes with the command. Version: "black-bits/laravel-cognito-auth": "dev-defaultProvider"

From

   {
       "type": "vcs",
       "url": "https://github.com/jaytaph/laravel-cognito-auth"
   }

from laravel-cognito-auth.

MarcosSchlickmann avatar MarcosSchlickmann commented on July 16, 2024

I have this same issue on a fresh start. Perhaps it's because I'm on Laravel 8?

from laravel-cognito-auth.

MarcosSchlickmann avatar MarcosSchlickmann commented on July 16, 2024

It is because of the version. I agree with @phackwer, these routes should be optional or customizable.

In Laravel 8 the authentication scaffolding was changed. I generated it through laravel/breeze and these are the generated files in app/Http/Controllers/Auth:

AuthenticatedSessionController.php
ConfirmablePasswordController.php
EmailVerificationNotificationController.php
EmailVerificationPromptController.php
NewPasswordController.php
PasswordResetLinkController.php
RegisteredUserController.php
VerifyEmailController.php

In Laravel 6 these are the files scaffolded by laravel/ui in app/Http/Controllers/Auth:

ConfirmPasswordController.php
ForgotPasswordController.php
LoginController.php
RegisterController.php
ResetPasswordController.php
VerificationController.php

from laravel-cognito-auth.

phackwer avatar phackwer commented on July 16, 2024

@MarcosSchlickmann I've made a fork to comment the routes from the service provider of the package till someone answer this request.

https://github.com/4cme/laravel-cognito-auth

In my case we have an app so the laravel is all API oriented, no views there other than the jsons. I think that it the best approach in this case would be to isolate screens/views and routes as an isolated package that uses the core of the package to talk to cognito.

from laravel-cognito-auth.

phackwer avatar phackwer commented on July 16, 2024

BTW: the forked package also fixes the error I had on 104.

from laravel-cognito-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.