Skip to content

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.

@what-the-diff
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