get()); } /** * Show the form for creating a new resource. */ public function create() { // } /** * Store a newly created resource in storage. */ public function store(Request $request) { // } /** * Display the specified resource. */ public function show(Request $request, Post $post) { if($request->withImages){ $post->load('Images'); } return response($post); } /** * Show the form for editing the specified resource. */ public function edit(Post $post) { // } /** * Update the specified resource in storage. */ public function update(Request $request, Post $post) { // } /** * Remove the specified resource from storage. */ public function destroy(Post $post) { // } }