@php use Modules\Project\Entities\Project; $posts = App\Post::all(); $projects = $posts->where('post_type', 'Modules\Project\Entities\Project')->where('published', 1); $project->location = Project::find($project->post_id)->location; @endphp
Back to Gallery