Skip to content

Commit

Permalink
Fixed Livewire namespace in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amshehzad committed Oct 14, 2023
1 parent bbd73cd commit e379dea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/examples/advanced-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 2
```php
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Models\{Tag,User};
use Illuminate\Database\Eloquent\Builder;
Expand Down Expand Up @@ -294,4 +294,4 @@ class UsersTable extends DataTableComponent
@endif
</div>
@endif
```
```
4 changes: 2 additions & 2 deletions docs/examples/basic-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 1
```php
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Models\User;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
Expand Down Expand Up @@ -37,4 +37,4 @@ class UsersTable extends DataTableComponent
];
}
}
```
```
4 changes: 2 additions & 2 deletions docs/start/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight: 6

To generate a new datatable component you can use the `make:datatable` command:

Create a new datatable component called `UserTable` in `App\Http\Livewire` that uses the `App\Models\User` model.
Create a new datatable component called `UserTable` in `App\Livewire` that uses the `App\Models\User` model.

```bash
php artisan make:datatable UserTable User
Expand All @@ -17,7 +17,7 @@ php artisan make:datatable UserTable User

You may pass a Custom Path to your model, should it not be contained within the "App" or "App\Models" namespaces:

Create a new datatable component called `TestTable` in `App\Http\Livewire` that uses the `App\Domains\Test\Models\Example` model.
Create a new datatable component called `TestTable` in `App\Livewire` that uses the `App\Domains\Test\Models\Example` model.

```bash
php artisan make:datatable TestTable example app/Domains/Test/Models/
Expand Down
4 changes: 2 additions & 2 deletions docs/start/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight: 5

You render components the same way you [render](https://laravel-livewire.com/docs/2.x/rendering-components) any Livewire component.

Your component at `App\Http\Livewire\UsersTable.php`
Your component at `App\Livewire\UsersTable.php`

```html
<livewire:users-table />
Expand All @@ -24,7 +24,7 @@ By default, all components will use the theme in the config file. But if for som

## Using sub-folders

If your component does not live in `App\Http\Livewire`, you can specify a different sub-folder. For example if your component lives in `App\Http\Livewire\Backend\Users` you would use the following:
If your component does not live in `App\Livewire`, you can specify a different sub-folder. For example if your component lives in `App\Livewire\Backend\Users` you would use the following:

```html
<livewire:backend.users.users-table />
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/creating-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This is what a bare bones component looks like before your customization:
```php
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Models\User;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
Expand Down

0 comments on commit e379dea

Please sign in to comment.