Skip to content

Commit

Permalink
Fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Krato committed Apr 30, 2019
1 parent 1616448 commit 1d6de4c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nova Embed

Embed field for Laravel Nova. Uses [Oscarotero Embed](https://github.com/oscarotero/Embed) to get the data
Embed field for Laravel Nova. With this package you can embed from Youtube, Vimeo, Facebook, DailyMotion, SoundCloud, Instagram and a lot of more. Uses [Oscarotero Embed](https://github.com/oscarotero/Embed) to get the data.

![preview](https://user-images.githubusercontent.com/74367/53722300-807ff800-3e65-11e9-8675-bd28ba33a4e1.png)

Expand All @@ -19,6 +19,8 @@ Then, register your new field in the `fields` method of the `Resource` class.

```php

use EricLagarda\NovaEmbed\Embed;

public function fields()
{
return [
Expand All @@ -30,6 +32,11 @@ public function fields()
}
```


## Update

Please change your namespace: `Ericlagarda` to `EricLagarda`

## Field options

* `->ajax()`: Load the embed with ajax. By default loads with the field
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
},
"autoload": {
"psr-4": {
"Ericlagarda\\NovaEmbed\\": "src/"
"EricLagarda\\NovaEmbed\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Ericlagarda\\NovaEmbed\\FieldServiceProvider"
"EricLagarda\\NovaEmbed\\FieldServiceProvider"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

use Ericlagarda\NovaEmbed\Invokes\NovaEmbedData;
use EricLagarda\NovaEmbed\Invokes\NovaEmbedData;

Route::get('/embed', NovaEmbedData::class);
2 changes: 1 addition & 1 deletion src/FieldServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Ericlagarda\NovaEmbed;
namespace EricLagarda\NovaEmbed;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
Expand Down
2 changes: 1 addition & 1 deletion src/Invokes/NovaEmbedData.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Ericlagarda\NovaEmbed\Invokes;
namespace EricLagarda\NovaEmbed\Invokes;

use Embed\Embed;
use Embed\Exceptions\InvalidUrlException;
Expand Down
4 changes: 2 additions & 2 deletions src/NovaEmbed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Ericlagarda\NovaEmbed;
namespace EricLagarda\NovaEmbed;

use Ericlagarda\NovaEmbed\Invokes\NovaEmbedData;
use EricLagarda\NovaEmbed\Invokes\NovaEmbedData;
use Laravel\Nova\Fields\Field;

class Embed extends Field
Expand Down

0 comments on commit 1d6de4c

Please sign in to comment.