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

this edit handle all controller functions #6

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

Conversation

habib-eg
Copy link

fix Redme #5
handle Index
handle Store
handle Show
handle update
handle Destroy
handle request to make StoreRequest && UpdateRequest
add Collection

@@ -84,7 +84,7 @@ class BlogController extends Controller
->allowedFilters('')
->defaultSort('')
->allowedSorts('')
->paginate($request->perPage ?? 10);
->paginate(request()->get('perPage',10);
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a good one, you can also make it shorter by using only the request method:

request('per_page', 10);

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