Black Friday Sale
Black Friday akan segera berakhir!

VhanzLulz

Joined 15 January, 2021
1
Comments
378
Total experiences
15
Lesson completed

Last activity

Mari Kita Bangun ScreencastMari kita masukkan playlist baru16:44

VhanzLulz

Saya gak bisa menyimpan datanya di store. Jadi pas buat playlist baru gak masuk ke database mas.

Saya sudah membuat method baru di model/users.

<?php

namespace App\Models;

use App\Models\Laporan\Playlist;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use HasFactory, Notifiable, HasRoles;
//....another codes....

    public function playlists(){
        return $this->hasMany(Playlist::class);
    }

Tapi di PlaylistController ada keterangan error : https://prnt.sc/xpo0c7. Mohon bantuannya mas.