<?php
Laravel allow null records relationship
/**
* Get the author of the post.
*/
public function user()
{
return $this->belongsTo(User::class)->withDefault();
}
Programing Coderfunda
February 23, 2022
Laravel, php
No comments
<?php
0 comments:
Post a Comment
Thanks