<?php

namespace Spatie\Activitylog\Test\Models;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    protected $table = 'articles';

    protected $guarded = [];

    public function User()
    {
        return $this->belongsTo(User::class);
    }
}

<?php

namespace Spatie\Activitylog\Test\Models;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    protected $table = 'articles';

    protected $guarded = [];

    public function User()
    {
        return $this->belongsTo(User::class);
    }

    public function SnakeUser()
    {
    	return $this->belongsTo(User::class, 'user_id');
    }
}

Add a snake cased relationship
Add a snake cased relationship

In order to test correct behaviour of "snake case" defined relationships, we need a relationship which can be snake cased in this test model.
