examinee icon indicating copy to clipboard operation
examinee copied to clipboard

i can't create course or quiz

Open abdallah84 opened this issue 4 years ago • 3 comments

i install it but i cant' create course or quiz, and it doesn't show my courses and quizzes (the default data) as eg. i go here to create course (http://127.0.0.1:8000/instructor/courses) but it gives error Unauthenticated. C:\xamppphp7\htdocs\examinee\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php#82

also how i can assign role to user ? and assign permission to role ?

abdallah84 avatar Jun 06 '20 20:06 abdallah84

please try seeder.

mshossain110 avatar Jun 06 '20 20:06 mshossain110

the seeder is working but still the same problem

abdallah84 avatar Jun 07 '20 10:06 abdallah84

Sanctum/api authentication issue. Necessarily front-end app(s) and band-end app(s) to be serve from the same domain — localhost in our case, in .env file in laravel app just put: APP_URL=http://localhost:8000 SANCTUM_STATEFUL_DOMAINS=localhost:8000

NB: Besides to this some properties change maybe needed in config/cors file like support credential set to true and others.

bekelehaile avatar Feb 19 '21 17:02 bekelehaile