Resource icon

Spatie Laravel Comments (Livewire Package) 1.2.9

No permission to download

Xelfix

New member
Feb 9, 2020
7
0
1
Hi,

Both your resources downloading "laravel-comments-livewire-main.zip".

Could you please provide install instructions?

Thank you!
 

oragnejews

New member
Aug 30, 2022
15
12
3
But instead of using auth repository, just use a local repository from your laravel root. Personally i create a folder called packages in the root and use that for my local repos.
 

Xelfix

New member
Feb 9, 2020
7
0
1
I have already checked the docs, but could not make it.

Could you please share detailed composer instructions?

I have created packages folder in laravel root, placed both zip, edited composer.json as:
Changed minimum-stability to dev, then added repository based on this (https://www.aaronsaray.com/2021/install-composer-package-from-local-zip)

"repositories": [ { "type": "artifact", "url": "./packages" } ]

By calling: composer require spatie/laravel-comments-livewire

I got error:
composer require spatie/laravel-comments-livewire

In ArtifactRepository.php line 137:

Failed loading package in ./packages/laravel-comments-livewire-main.zip: Package spatie/laravel-comments-livewire has no version defined.


In ArrayLoader.php line 115:

Package spatie/laravel-comments-livewire has no version defined.

Thanks a lot for your help! :)
 

oragnejews

New member
Aug 30, 2022
15
12
3
I have already checked the docs, but could not make it.

Could you please share detailed composer instructions?

I have created packages folder in laravel root, placed both zip, edited composer.json as:
Changed minimum-stability to dev, then added repository based on this (https://www.aaronsaray.com/2021/install-composer-package-from-local-zip)

"repositories": [ { "type": "artifact", "url": "./packages" } ]

By calling: composer require spatie/laravel-comments-livewire

I got error:
composer require spatie/laravel-comments-livewire

In ArtifactRepository.php line 137:

Failed loading package in ./packages/laravel-comments-livewire-main.zip: Package spatie/laravel-comments-livewire has no version defined.


In ArrayLoader.php line 115:

Package spatie/laravel-comments-livewire has no version defined.

Thanks a lot for your help! :)
Do this instead
{ ... "repositories": { "name-your-repository": { "type": "path", "url": "./packages/*", "options": { "symlink": true } } }, ... } [\ICODE]
 

oragnejews

New member
Aug 30, 2022
15
12
3
Then in the same composer.json you can add
"(whatever name you chose for repository)/(package name)": "*"

for example if you name your repository "packages"
"packages/laravel-comments-main": "*", "packages/laravel-livewire-comments-main": "*"
 

oragnejews

New member
Aug 30, 2022
15
12
3
then run composer update.
You can also composer require packages/laravel-comments-main after adding the repository
 

Xelfix

New member
Feb 9, 2020
7
0
1
Thanks a lot oragnejews I have managed to install based on your instructions however I had to modify it a bit. I have never installed custom package via composer so your help were really needed, can't look forward for your other shares! :)

I'm using Laravel Sail to run Laravel on Windows 11 with Ubuntu WSL + Docker.

Install instructions for this setup:
- Create "packages" folder in Laravel root where you have "app", "bootstrap", etc folder.
- UNZIP the downloaded laravel-comments-main and laravel-comments-livewire-main folder then place it to the "packages" folder
- Edit your composer.json and add:

"repositories": { "packages": { "type": "path", "url": "packages/*", "options": { "symlink": true } } }
- Now we are ready to install the packages via composer with "composer require spatie/laravel-comments"
- Complete the package installation based on https://spatie.be/docs/laravel-comments/v1/installation-setup
- Finally we can install the Livewire components: "composer require spatie/laravel-comments-livewire"
 

oragnejews

New member
Aug 30, 2022
15
12
3
Thanks a lot oragnejews I have managed to install based on your instructions however I had to modify it a bit. I have never installed custom package via composer so your help were really needed, can't look forward for your other shares! :)

I'm using Laravel Sail to run Laravel on Windows 11 with Ubuntu WSL + Docker.

Install instructions for this setup:
- Create "packages" folder in Laravel root where you have "app", "bootstrap", etc folder.
- UNZIP the downloaded laravel-comments-main and laravel-comments-livewire-main folder then place it to the "packages" folder
- Edit your composer.json and add:

"repositories": { "packages": { "type": "path", "url": "packages/*", "options": { "symlink": true } } }
- Now we are ready to install the packages via composer with "composer require spatie/laravel-comments"
- Complete the package installation based on https://spatie.be/docs/laravel-comments/v1/installation-setup
- Finally we can install the Livewire components: "composer require spatie/laravel-comments-livewire"
Sweet, glad i could help and thanks for writing clearer instructions. Cheers
 

Forum statistics

Threads
69,206
Messages
908,333
Members
236,821
Latest member
rehman

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu