You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Zone extends Model
{
use SoftDeletes, CascadeSoftDeletes;
protected $cascadeDeletes = ['records'];
public function records(): HasMany
{
return $this->hasMany(ResourceRecord::class);
}
}
Controller
public function delete(Request $request, string $id)
{
Zone::destroy($id);
}
Result:
Attempted to lazy load [zone] on model [App\Models\ResourceRecord] but lazy loading is disabled.
An error will occur if the data record is more than 1
with
in AppServiceProvider not work properly v4.4
The text was updated successfully, but these errors were encountered: