aidsoul / laravel-storage
The Laravel Framework.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.0.2
- guzzlehttp/guzzle: ^7.2
- intervention/image: ^2.7
- kalnoy/nestedset: ^6.0
- laravel/framework: ^9.19
- laravel/sanctum: ^3.0
- laravel/tinker: ^2.7
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.0.1
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^6.1
- phpunit/phpunit: ^9.5.10
- spatie/laravel-ignition: ^1.0
README
It is a simple online file repository. Developed using the Laravel open source framework. The nested set model was used to form the folder tree.
Available options:
- Only users who have confirmed their email have access to the repository;
- It is possible to recover the password;
- The user can upload any files, rename them, delete them, and download them;
- The user can also create folders of unlimited nesting;
- Thumbnails should be displayed for images;
- When any file is selected, the user can share it. As a result, he will get a public link. When you click on this link, you can see information about the file and a direct link to download it. The direct link must be valid for a limited time;
- When this limit is reached, the ability to upload new files is blocked until any existing files are deleted;
- The maximum size of each downloaded file is also limited;
- Role separation;
- Assigning another user as an administrator;
- User account blocking;
- Changing the size of the user storage;
- On the disk, the files are located in the user's folder and have names as a unique identifier without an extension.
Installing
You need:
- apache2;
- php >=8.0;
- MySQL.
To install, use the command: git clone https://github.com/aidsoul/laravel-storage
. Download the necessary libraries using the command: composer install
.
Or use command composer create-project aidsoul/laravel-storage
.
Note that the first registered user becomes an administrator.
Environment variables
You can add the following variablesto the [.evn] configuration file .
It is recommended to set a value for each variable in the table below.
Database
Set a value for the following environment variables:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
After on the command line, run the command: php artisan migrate
.
Set a value for the following environment variables:
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=""
MAIL_FROM_NAME="${APP_NAME}"
Storage
To navigate to a folder, you need to click on it twice.
License
The Laravel framework is open-sourced software licensed under the MIT license.