PHPackages                             blocksystems/file-attributes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. blocksystems/file-attributes

ActiveLibrary[Framework](/categories/framework)

blocksystems/file-attributes
============================

service model attributes for laravel(lumen) by files

v1.x-dev(4y ago)03MITPHPPHP &gt;=7.1.3

Since Oct 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/TaejongJang/file-attributes)[ Packagist](https://packagist.org/packages/blocksystems/file-attributes)[ RSS](/packages/blocksystems-file-attributes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

[![Version](https://camo.githubusercontent.com/0865d0b204a23288ce8eb34dfffdc52a5401a9796a9133d2eb4b1bf92ebbf6bc/68747470733a2f2f706f7365722e707567782e6f72672f626c6f636b73797374656d732f66696c652d617474726962757465732f76657273696f6e3f666f726d61743d666c6174)](https://packagist.org/blocksystems/file-attributes)[![License](https://camo.githubusercontent.com/4e1227dd73c516f9e504ff300df55f1682f022ed5d1f312ae3ab3e6722d99665/68747470733a2f2f706f7365722e707567782e6f72672f626c6f636b73797374656d732f66696c652d617474726962757465732f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/blocksystems/file-attributes)

Document
--------

[](#document)

file attributes for laravel(lumen)

this composer auto upload files and delete before files

\[in your model class\]

```
protect $fileable = ['thumbnail', 'profile'];
```

`e.g` (when model creating)

```
User::create(['thumbnail' => $request->file('thumbnail'), 'profile' => $request->file('profile')]);
$user->thumbnail; // will be 's3 or local path'
```

`e.g` (multiple files ※but if you want that, please cast your attribute to json like "`php protected $casts = ['attirbute' => 'json']`")

```
User::create(['thumbnail' => [$request->file('thumbnail'), $request->file('profile')]]);
```

\##Set prefix file path

```
protect $filablePrefix = 'admin'; // including slash or not, everything is OK.
```

\##Set file path

```
protect $filablePath = 'admin/files'; // including slash or not, everything is OK.
```

\##Set turn off automatically deleting file when attributes changed or deleted

```
protect $fileAutoDeleting = false;  // default : true
```

\##Everytime when attribute get changed value, will change dynamically file to url string

```
protect $fileableSync = true; // default : false
```

`e.g`

```
$user->thumbnail = $request->file('thumbnail');
// (without saving) will be 's3 or local path'
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1671d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3d1a67afabc3595efc29d8d739c6a46c0335ffc7c54996a5518f72d93b9cb54?d=identicon)[TaejongJang](/maintainers/TaejongJang)

---

Top Contributors

[![TaejongJang](https://avatars.githubusercontent.com/u/21344480?v=4)](https://github.com/TaejongJang "TaejongJang (3 commits)")

---

Tags

frameworklaravels3awslumenfile-upload

### Embed Badge

![Health badge](/badges/blocksystems-file-attributes/health.svg)

```
[![Health](https://phpackages.com/badges/blocksystems-file-attributes/health.svg)](https://phpackages.com/packages/blocksystems-file-attributes)
```

###  Alternatives

[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[saad/api-debugger

Easily debug your JSON API.

1170.1k](/packages/saad-api-debugger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
