the morphOne relation always return null

im setting up a One To One (Polymorphic) like this

My Models:

namespace App;
use Illuminate\Database\Eloquent\Model;
class Payement extends Model{
    protected $table = 'payements';
    protected  $primaryKey = 'id';
    protected $morphClass = 'App\Payement';
    public function payementable(){
        return $this->morphTo();

class Recu extends Model{
    protected $table = 'recus';
    protected  $primaryKey = 'id';  
    public function payement(){
        return $this->morphOne('App\Payement', 'payementable');

My Tables Schemas

Schema::create('recus', function (Blueprint $table) {
Schema::create('payements', function (Blueprint $table) {

the problem is this is working


this is not


Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us