title: App\Profile::jenis must return a relationship instance, but "null" was returned. Was the "return" keyword used?
body: <blockquote>
    <p>App\Profile::jenis must return a relationship instance, but "null" was
    returned. Was the "return" keyword used? (View:
    C:\xampp\htdocs\user_manage\resources\views\profile\profile.blade.php)
    (View:
    C:\xampp\htdocs\user_manage\resources\views\profile\profile.blade.php)</p>
    
    <p>Model Jenis.php</p>
  </blockquote>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  use App\Profile;
  
  class Jenis extends Model
  {
  public $timestamps = false;
  protected $table="tbl_jenis_penyedia";
  protected $primaryKey="id_jenis_penyedia";
  protected $fillable=['jenis_penyedia'];
  
  public function profile(){
      return $this-&gt;belongsTo(Profile::class);
  }
  }
  </code></pre>
  
  <blockquote>
    <p>Model Profile.php</p>
  </blockquote>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Profile extends Model
  {
  public $timestamps = false;
  protected $table="tbl_profil_penyedia";
  protected $primaryKey="id_profil_penyedia";
  protected $fillable=['id_jenis_penyedia','nama', 'no_ktp', 'file',  'npwp', 'bank', 'no_rek', 'email', 'no_telp', 'keahlian', 'pengalaman', 'alamat', 'pendidikan'];
  
      public function jenis(){
          $this-&gt;hasMany(Jenis::class, 'id_jenis_penyedia', 'id_profil_penyedia');
  }
  }
  </code></pre>
  
  <blockquote>
    <p>Controller</p>
  </blockquote>
  
  <pre><code>  &lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\DB;
  use App\Profile;
  use App\Jenis;
  
  
  
  
  class ProfileController extends Controller
  {
      public function index()
      {
          $profile = Profile::all();
           return view('profile/homeprofile',['profile' =&gt; $profile]);
  }
  }
  </code></pre>
  
  <blockquote>
    <p>view</p>
  </blockquote>
  
  <pre><code>@foreach($profile as $p)
              &lt;tr&gt;
                &lt;td&gt;{{ $no++ }}&lt;/td&gt;
                &lt;td&gt;
                  {{ $p-&gt;jenis-&gt;jenis_penyedia }}&lt;/td&gt;
  &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>please help me</p>