Skip to content

Commit

Permalink
Fixed slug and tree
Browse files Browse the repository at this point in the history
  • Loading branch information
mafftor committed May 1, 2020
1 parent 1bb291d commit 3663094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/LfmPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Mafftor\LaravelFileManager;

use Illuminate\Container\Container;
use Illuminate\Support\Str;
use Intervention\Image\Facades\Image;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Mafftor\LaravelFileManager\Events\ImageIsUploading;
Expand Down Expand Up @@ -302,7 +303,7 @@ private function getNewName($file)
if (config('lfm.rename_file.uniqid', false) === true) {
$new_file_name = uniqid();
} elseif (config('lfm.rename_file.slug', true) === true) {
$new_file_name = str_slug($new_file_name);
$new_file_name = Str::slug($new_file_name);
}

$extension = $file->getClientOriginalExtension();
Expand Down
18 changes: 0 additions & 18 deletions src/views/tree.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
<div class="m-3 d-block d-lg-none">
<h1 style="font-size: 1.5rem;">Laravel File Manager</h1>
<small class="d-block">Ver 2.0</small>
<div class="row mt-3">
<div class="col-4">
<img src="{{ asset('vendor/laravel-file-manager/img/152px color.png') }}" class="w-100">
</div>

<div class="col-8">
<p>Current usage :</p>
<p>20 GB (Max : 1 TB)</p>
</div>
</div>
<div class="progress mt-3" style="height: .5rem;">
<div class="progress-bar progress-bar-striped progress-bar-animated w-75 bg-main" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>

<ul class="nav nav-pills flex-column">
@foreach($root_folders as $root_folder)
<li class="nav-item">
Expand Down

0 comments on commit 3663094

Please sign in to comment.