Skip to content

Commit c920152

Browse files
committed
Fix typo
1 parent df9a389 commit c920152

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

file-uploads.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function save()
6565
However, there is more happening under the hood to make file uploads work in Livewire. Here's a glimpse at what goes on when a user selects a file to upload:
6666

6767
1. When a new file is selected, Livewire's JavaScript makes an initial request to the component on the server to get a temporary "signed" upload URL.
68-
2. Once the url is received, JavaScript then does the actual "upload" to the signed URL, storing the upload in a temporary directory designated by Livewire and returning the new temporary file's unique hash ID.
68+
2. Once the URL is received, JavaScript then does the actual "upload" to the signed URL, storing the upload in a temporary directory designated by Livewire and returning the new temporary file's unique hash ID.
6969
3. Once the file is uploaded and the unique hash ID is generated, Livewire's JavaScript makes a final request to the component on the server telling it to "set" the desired public property to the new temporary file.
7070
4. Now the public property (in this case `$photo`) is set to the temporary file upload and is ready to be stored or validated at any point.
7171

@@ -249,10 +249,10 @@ public function save()
249249

250250
Livewire takes care of this complexity, by providing a temporary, signed URL that pretends to be the uploaded image so that your page can show something to your users.
251251

252-
This url is protected against showing files in directories above the temporary directory of course and because it's signed temporarily, users can't abuse this URL to preview other files on your system.
252+
This URL is protected against showing files in directories above the temporary directory of course and because it's signed temporarily, users can't abuse this URL to preview other files on your system.
253253

254254
@component('components.tip')
255-
If you've configured Livewire to use S3 for temporary file storage, calling <code>->temporaryUrl()</code> will generate a temporary, signed url from S3 directly so that you don't hit your Laravel app server for this preview at all.
255+
If you've configured Livewire to use S3 for temporary file storage, calling <code>->temporaryUrl()</code> will generate a temporary, signed URL from S3 directly so that you don't hit your Laravel app server for this preview at all.
256256
@endcomponent
257257

258258
## Testing File Uploads {#testing-uploads}

properties.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function resetFilters()
9898

9999
$this->reset(['search', 'isActive']);
100100
// Will reset both the search AND the isActive property.
101-
101+
102102
$this->resetExcept('search');
103103
// Will only reset the isActive property (any property but the search property).
104104
}
@@ -177,7 +177,7 @@ class HelloWorld extends Component
177177
Now, the `$message` property will only be updated when the user clicks away from the input field.
178178

179179
### Deferred Updating {#deferred-updating}
180-
In cases where you don't need data updates to happen live, Livewire has a `.defer` modifer that batches data updates with the next network request.
180+
In cases where you don't need data updates to happen live, Livewire has a `.defer` modifier that batches data updates with the next network request.
181181

182182
For example, given the following component:
183183

@@ -308,7 +308,7 @@ public function save()
308308
<div>
309309
@foreach ($user->posts as $i => $post)
310310
<input type="text" wire:model="user.posts.{{ $i }}.title" />
311-
311+
312312
<span class="error">
313313
@error('user.posts.'.$i.'.title') {{ $message }} @enderror
314314
</span>
@@ -342,12 +342,12 @@ public function __construct($items)
342342
public function toLivewire()
343343
{
344344
return $this->items;
345-
}
345+
}
346346

347347
public static function fromLivewire($value)
348348
{
349349
return new static($value);
350-
}
350+
}
351351
}
352352
@endslot
353353
@endcomponent

0 commit comments

Comments
 (0)