Skip to content
View alesf's full-sized avatar

Block or report alesf

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. homebridge-arso homebridge-arso Public

    Homebridge plugin for Slovenian weather data (ARSO)

    JavaScript 2

  2. homebridge-http-air-quality homebridge-http-air-quality Public

    HTTP Air quality accessory for Homebridge

    JavaScript 1 2

  3. php-epp-client php-epp-client Public

    Forked from metaregistrar/php-epp-client

    Object-oriented PHP EPP Client

    PHP

  4. cashier-authorize cashier-authorize Public

    Forked from shahidkarimi/cashier-authorize

    Authorize.net payment module for Laravel

    PHP

  5. Laravel - Eloquent: Cascading delete... Laravel - Eloquent: Cascading delete, forceDelete and restore
    1
    If you want to delete a model with related models you can use **Laravel model events**. There is also a special case if your models cascade.
    2
    
                  
    3
    Lets say you have Folder and File Eloquent models that are related and use SoftDeletes trait and when you delete a folder you also want to delete files in folder and all subfolders with files.
    4
    
                  
    5
    In the `boot` method or Folder model you catch `delete` and `restore` events (actually `deleting` and `restoring` events that trigger before restoring or deleting happens). You can delete/restore all files in folder you're deleting/restoring with `$folder->files()->delete();` and `$folder->files()->withTrashed()->restore();`.
  6. PAMI PAMI Public

    Forked from marcelog/PAMI

    PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple…

    PHP