Eric, see this Help page: Schematic Capture > Creating New Symbols > Adding Attributes.? Quoting from that page:
? ? "There is a special combination of attributes that will cause a required library to be automatically included in every schematic that uses the symbol."
It then shows you that combination.? Those attributes must be added to the symbol in LTspice's symbol editor -- not on the schematic page.? Then go to Edit > Attributes > Edit Attributes (or press ctrl-A) to change the attributes.? Once the symbol is saved with those attributes, you may need to delete and add the symbol again to your schematic, for the changes to take effect there.
The SpiceModel attribute should be the name of the file.? In your case, that would be MOC308x.lib.? I recommend no directory path.? That works both if the file is in the folder with the schematic, or if it is in LTspice's library area.
The Value2 attribute should be the name of the subcircuit, the thing that comes after .SUBCKT.? In your case, that would be MOC3083.