Joist hangers are the recommended fixing.
https://www.dunnings.com.au/products...tainless-steel
I have seen many constructions using just nails or screws coming apart as it relies on the fixing to support the structure as well as hold it in place. Joist hangers provide the support under the beam, the fixings in multiple directions means the nails or screws to do their job properly.