acr / file
File Upload
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- intervention/image: dev-master
README
Query-File-Upload: Paketi refarans alarak oluşturulmuştur.
Kurulum:
composer json :
"acr/file": "dev-file"
CONFİG
Providers
Acr\File\AcrFileServiceProviders::class
Aliases
'AcrFile' => Acr\File\Facades\AcrFile::class
acr_file_id
PHP $acr_file_id = AcrFile::create($acr_file_id);
acr_file_id: ilişkili tablodan gelmeli örneğin ürünler için kullanacaksanız urun tablonuzda acr_file_id stunu olmalı, acr_file_id değişkeni null gelirse : $acr_file_id = AcrFile::create($acr_file_id) yeni bir acr_file_id oluşturur.
{!! AcrFile::css() !!}
CSS dosyalarını yükler.
```php
PHP
echo AcrFile::form()
Formu yükler
PHP echo AcrFile::js($acr_file_id)
Java script dosylarını yükler.
Mysql Tablosu CREATE TABLE `acr_files` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `parent_id` int(11) DEFAULT NULL, `file_dir` varchar(50) COLLATE utf8_turkish_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT NULL, `sil` tinyint(4) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci; -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `acr_files_childs` -- CREATE TABLE `acr_files_childs` ( `id` int(11) NOT NULL, `acr_file_id` int(11) DEFAULT NULL, `sira` INT NOT NULL DEFAULT '10', `file_name` varchar(200) COLLATE utf8_turkish_ci DEFAULT NULL, `file_name_org` varchar(200) COLLATE utf8_turkish_ci DEFAULT NULL, `fize_size` varchar(25) COLLATE utf8_turkish_ci DEFAULT NULL, `file_type` varchar(10) COLLATE utf8_turkish_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `sil` tinyint(4) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci; ALTER TABLE `acr_files` ADD PRIMARY KEY (`id`); ALTER TABLE `acr_files_childs` ADD PRIMARY KEY (`id`); ALTER TABLE `acr_files` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `acr_files_childs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
Dosya yolu /acr_files/acr_file_id