Belajar Laravel Lebih Dari Sekedar Fundamental

VhanzLulz

Joined 15 January, 2021
We don't know much about them, but we're sure he is great someone.
1
Comments
1.7K
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.

Parsinta is a online learning platform intended for web developers.Through series-series such as Laravel, Reactjs, Vuejs, InertiaJs, HTML, Bootstrap, Tailwind CSS, and more.

Parsinta is a Trademark of Irsyad A. Panjaitan. Copyright © 2016 - 2022