Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Apr 13, 2024
1 parent 6cd6f72 commit 0b69fa9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 48 deletions.
26 changes: 1 addition & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
# Laravel Blade Component Template

This repository template makes it easy to create a new Laravel Blade Component als an installable Composer package, ready to use in any Laravel project.

Click the green button above "Use this template" to make a new repository.

## Structure

### Javascript

In `resources/js` you can add your source Javascript files.

Because we want to make these Components headless, we need to include every Javascript it needs inside the views or add instructions on which Javascript files needs to be added to the asset compilation step inside their existing project.

### CSS

In `resources/css` you can add your source CSS files.

### Views

In `resources/views` you can add your Blade views.

### Public

In `public` folder, you can add files that needs to be published in the Laravel app when the package is installed.
# Laravel Instagram Component
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "vormkracht10/laravel-blade-component-instagram",
"description": "Laravel Blade Component Instagram",
"name": "vormkracht10/laravel-instagram-component",
"description": "Laravel Instagram Component",
"keywords": [
"vormkracht10",
"laravel",
"laravel-blade-component-instagram"
"laravel-blade",
"laravel-blade-component"
],
"homepage": "https://github.com/vormkracht10/laravel-blade-component-instagram",
"homepage": "https://github.com/vormkracht10/laravel-instagram-component",
"license": "MIT",
"authors": [
{
Expand Down Expand Up @@ -38,7 +39,7 @@
},
"autoload": {
"psr-4": {
"Vormkracht10\\BladeComponentInstagram\\": "src/"
"Vormkracht10\\InstagramComponent\\": "src/"
}
},
"scripts": {
Expand All @@ -58,7 +59,7 @@
"extra": {
"laravel": {
"providers": [
"Vormkracht10\\BladeComponentInstagram\\BladeComponentInstagramServiceProvider"
"Vormkracht10\\InstagramComponent\\InstagramComponentServiceProvider"
]
}
},
Expand Down
11 changes: 0 additions & 11 deletions package.json

This file was deleted.

4 changes: 2 additions & 2 deletions src/Components/InstagramComponent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Vormkracht10\BladeComponentInstagram\Components;
namespace Vormkracht10\InstagramComponent\Components;

use Exception;
use GuzzleHttp\Client;
Expand All @@ -27,7 +27,7 @@ public function __construct(
public function render()
{
return view()->first([
'blade-component-instagram::components.instagram',
'instagram-component::components.instagram',
]);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?php

namespace Vormkracht10\BladeComponentInstagram;
namespace Vormkracht10\InstagramComponent;

use Illuminate\Support\Facades\Blade;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Vormkracht10\BladeComponentInstagram\Components\InstagramComponent;
use Vormkracht10\InstagramComponent\Components\InstagramComponent;
use Vormkracht10\InstagramComponent\Components\InstagramCachedComponent;

class BladeComponentInstagramServiceProvider extends PackageServiceProvider
class InstagramComponentServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
$package
->name('blade-component-instagram')
->name('instagram-component')
->hasConfigFile('instagram-component')
->hasViews();
}
Expand Down

0 comments on commit 0b69fa9

Please sign in to comment.