How to delete record

Published 8 months ago by JokersMild85

What is the proper way to delete a record in Laravel? Does it have to go through the destroy method?

            foreach($request['delete'] as $delete)
                $workout_exercise = WorkoutExercise::findOrFail($delete['id']);

No, do it in whatever method you want.

Please sign in or create an account to participate in this conversation.