@mikebronner
Heah Mike, I'm following your suggestion here and it appears to work, but I am getting one little detail wrong, so would like your input if possible.
In the controller receiving the checked boxes, I have successfully got the array of check boxes. I can see them by doing
public function destroy(Request $request)
{
dd($request);
}
However, when I do your code: Crew::destroy(Input::get('checkboxes[]'));
I get nothing - just the white page of death.
The array off of $request looks like this:
Request {#37 ▼
#json: null
#sessionStore: null
#userResolver: Closure {#224 ▶}
#routeResolver: Closure {#233 ▶}
+attributes: ParameterBag {#39 ▶}
+request: ParameterBag {#38 ▼
#parameters: array:3 [▼
"_method" => "DELETE"
"_token" => "AbDOKeew2ajR3OHcqh7LOXolf0w9E1c6WdOI75af"
"delete" => array:3 [▼
0 => "26"
1 => "65"
2 => "66"
]
]
}
+query: ParameterBag {#45 ▶}
+server: ServerBag {#42 ▶}
+files: FileBag {#41 ▶}
+cookies: ParameterBag {#40 ▶}
+headers: HeaderBag {#43 ▶}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/crews/%7Bcrews%7D"
#requestUri: "/crews/%7Bcrews%7D"
#baseUrl: ""
#basePath: null
#method: "DELETE"
#format: null
#session: Store {#108 ▶}
#locale: null
#defaultLocale: "en"
}
Many Thanks !