Eloquent model relationship in Laravel : This is my Project.php model

    <?php
    
    namespace App;
    
    use Illuminate\Database\Eloquent\Model;
    
    class Project extends Model
    {
    	protected $table = 'project';
    	protected $primaryKey = 'project_id';
    
    	
    }
<br>
This is my Developer.php model

    <?php
    
    namespace App;
    
    use Illuminate\Database\Eloquent\Model;
    
    class Developer extends Model
    {
        //
    	protected $table = 'developer';
    	protected $primaryKey = 'id';
    }

I want to join this two model as the SQL below : 
> SELECT developer.developer_name, count(project.dev_id)<br>
> FROM project<br>
> JOIN developer ON developer.id = project.dev_id <br>
> GROUP BY developer.developer_name<br>

Can someone help me ? I am confused when looked through different documentation.<br>
Please guide me the correct way..