Laravel Developer
David Carr
Web Developer
All Posts Archives Categories Authors
About Books Packages Templates Contact
Blog
All Posts Archives Categories Authors
About Books Packages Templates Contact
Laravel Box
Laravel Packages
Laravel Microsoft Graph Laravel Xero Laravel Sent Emails Laravel Dropbox Laravel Box Laravel Companies House Laravel Countries Laravel Eventbrite Laravel Blade Components
PHP Packages
PDO Wrapper PHP find and replace JSON SQL Import IMAP Export CSV Pagination
v1
Navigation
  • Introduction
  • Install
  • Files
  • Folders
Navigation
  • Introduction
  • Install
  • Files
  • Folders

Folders

This package provides a clean way of working with folders.

To work with folders first call ->folders() followed by a method.

Get folder contents

Accepts a folder id defaults to 0, returns an array.

Box::folders()->get($id = 0);

Get files within a folder

Accepts a folder id, returns an array.

Box::folders()->items($id);

Create folder

Accepts name of the folder and the folder id as a parent, defaults to 0 when omitted. Returns an array.

Box::folders()->store($name, $parent = 0);

Rename folder

Accepts the folder id, name of the folder. Optionally set the parent folder. Returns an array.

Box::folders()->update($id, $name, $parent = 0);

Copy folder

Accepts the folder id, the parent folder. Optionally set a new name on copy. Returns an array.

Box::folders()->copy($id, $parent, $name = null);

Delete folder

Accepts the folder id. Returns no output.

Box::folders()->destroy($id);

Get folder collaborations

Accepts the folder id. Returns an array.

Box::folders()->collaborations($id);
Table of Contents
  • Get folder contents
  • Get files within a folder
  • Create folder
  • Rename folder
  • Copy folder
  • Delete folder
  • Get folder collaborations

DCBlog

Practical tutorials, code snippets, and in-depth guides for modern web development. Helping developers build better applications since 2009.

Subscribe to my newsletter for the latest updates on my books and digital products.

© 2009 - 2025 DC Blog. All rights reserved.

Privacy Policy • Terms of Service