Skip to content

Lock Files & Folder

Muah edited this page Sep 20, 2019 · 21 revisions
  • under config/database.php add a new connection
'mediamanager' => [
      'driver'   => 'mysql', // or whatever you want
      'database' => env('DB_DATABASE'), // or database_path('MediaManager.sqlite')
      'host'     => env('DB_HOST'),
      'port'     => env('DB_PORT'),
      'username' => env('DB_USERNAME'),
      'password' => env('DB_PASSWORD'),
]

A new option for locking file/folder was added which basically disable move/rename/delete/edit for that item, if the item was a folder you won't be able to move items into it as well BUT you still can move to its nested folders.

Notes

  • locking a folder doesnt lock its content, which means you can still do any operation on any of its childrens.

  • folder with locked items cant be deleted until all of its content are unlocked.