m-thalmann / cookbook Goto Github PK
View Code? Open in Web Editor NEWA recipe web-app
License: MIT License
A recipe web-app
License: MIT License
Hello Matthias!
First of all, thank you for creating this app, I re-used it for one of my project ideas :)
Could you upload latest/complete laravel migration files please? (specifically to create the auth_tokens table)
There is a migration file to add some fields to the auth_token table:
2023_08_23_180717_add_request_fields_to_auth_tokens_table.php
But there is no migration to create the table itself, and the rest of the fields that should be in the auth_table.
More details:
When run php artisan migrate
it threw errors. I have noticed there is no migration to create the auth_tokens table.
At first, I created my own migration file to create the auth_tokens table, and it worked on my localhost with a demo mode (the demo account already created by seeding). However, in an empty/clean environment (no seeded data in database), when I create a new user, it throws errors about missing columns (I didn't have those columns in the migration file I created). After adding those missing columns (according to the AuthTokenSchema.php) manually in PhpMyAdmin, I was able to register a new user, however, after the re-direct to the home page, I get the Error 401 Unauthorised under categories and recipes.
Looking at the Network requests, the client uses a token which doesn't exist in the database, then calls the /refresh api endpoint, which also returns a token which doesn't exists in the auth_tokens table.
I think all of those problems exists because I have an incorrect auth_tokens schema.
Thanks in advance! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.