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

Ignore csrf token field when saving schedule #69

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

Conversation

areichardt-apo
Copy link

When i try to save a new schedule, it get the following error:

Add fillable property [_token] to allow mass assignment on [RobersonFaria\DatabaseSchedule\Models\Schedule].

Its because of the $request->all() - which contains the csrf _token field.

Copy link

what-the-diff bot commented Jun 11, 2024

PR Summary

  • Enhanced Data Handling in ScheduleController
    The 'store' and 'update' functions in ScheduleController.php have been updated to streamline data management. Now, these functions only draw in relevant request data, effectively ignoring the '_token' field. This adjustment improves efficiency and prevents unnecessary data overloading.

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.

1 participant