I am gathering data from 2 different tables. Below is my array so far and code I am using in my controller.
$resources = Resource::with(\'type\')->get();