Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rating): add rating #58

Merged
merged 2 commits into from Sep 24, 2019
Merged

feat(rating): add rating #58

merged 2 commits into from Sep 24, 2019

Conversation

grozwalker
Copy link
Contributor

Добавил страницу рейтинга (могут просматривать и незареганные пользователи)

->orderBy('read_chapters_count', 'DESC')
->get();

if (request()->wantsJson()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api никогда не надо смешивать с обычным html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убрал

@@ -11,6 +11,5 @@
$factory->define(ReadChapter::class, function (Faker $faker) {
return [
'chapter_id' => factory(Chapter::class)->create()->id,
'user_id' => factory(User::class)->create()->id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот это непонятно. У readChapter должен быть пользователь.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вернул

@mokevnin mokevnin merged commit fcfeff6 into Hexlet:master Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants