├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── composer.json ├── database ├── factories │ └── .gitkeep └── migrations │ ├── .gitkeep │ ├── 2018-05-23_18_15_30_create_virtual_attributes.php │ └── 2018-06-04_22_19_30_create_attachments.php ├── phpunit.xml ├── src ├── .gitkeep ├── AttachmentModel.php ├── HasAttachment.php ├── ServiceProvider.php ├── VirtualAttribute.php └── VirtualAttributeModel.php └── tests ├── Models ├── .gitkeep ├── Post.php └── User.php ├── TestAttachment.php ├── TestCase.php ├── TestVirtualAttribute.php ├── data ├── file1.txt ├── file2.jpeg └── file3.data └── database ├── factories ├── .gitkeep ├── PostFactory.php └── UserFactory.php └── migrations ├── .gitkeep ├── 2014_10_12_000000_create_users_table.php ├── 2014_10_12_100000_create_password_resets_table.php └── 2018-05-22_23_30_50_create_posts_table.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/composer.json -------------------------------------------------------------------------------- /database/factories/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/migrations/2018-05-23_18_15_30_create_virtual_attributes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/database/migrations/2018-05-23_18_15_30_create_virtual_attributes.php -------------------------------------------------------------------------------- /database/migrations/2018-06-04_22_19_30_create_attachments.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/database/migrations/2018-06-04_22_19_30_create_attachments.php -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/AttachmentModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/src/AttachmentModel.php -------------------------------------------------------------------------------- /src/HasAttachment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/src/HasAttachment.php -------------------------------------------------------------------------------- /src/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/src/ServiceProvider.php -------------------------------------------------------------------------------- /src/VirtualAttribute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/src/VirtualAttribute.php -------------------------------------------------------------------------------- /src/VirtualAttributeModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/src/VirtualAttributeModel.php -------------------------------------------------------------------------------- /tests/Models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Models/Post.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/Models/Post.php -------------------------------------------------------------------------------- /tests/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/Models/User.php -------------------------------------------------------------------------------- /tests/TestAttachment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/TestAttachment.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/TestVirtualAttribute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/TestVirtualAttribute.php -------------------------------------------------------------------------------- /tests/data/file1.txt: -------------------------------------------------------------------------------- 1 | file_txt_1.txt -------------------------------------------------------------------------------- /tests/data/file2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/data/file2.jpeg -------------------------------------------------------------------------------- /tests/data/file3.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/data/file3.data -------------------------------------------------------------------------------- /tests/database/factories/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/database/factories/PostFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/database/factories/PostFactory.php -------------------------------------------------------------------------------- /tests/database/factories/UserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/database/factories/UserFactory.php -------------------------------------------------------------------------------- /tests/database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/database/migrations/2014_10_12_000000_create_users_table.php -------------------------------------------------------------------------------- /tests/database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/database/migrations/2014_10_12_100000_create_password_resets_table.php -------------------------------------------------------------------------------- /tests/database/migrations/2018-05-22_23_30_50_create_posts_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ponich/eloquent-traits/HEAD/tests/database/migrations/2018-05-22_23_30_50_create_posts_table.php --------------------------------------------------------------------------------