Re: laravel/php

Ashley Sheridan <[email protected]> Wed, 31 Jul 2024 02:21:31 +0100
Newsgroups gmane.comp.php.general
Message-ID <[email protected]>

On 31 July 2024 02:07:17 BST, bruce <[email protected]> wrote:
>Hi.
>
>Is the list ok to post basic laravel questions? Or only straight php?
>
>I'm doing some basic research on laravel, and other tech/stacks.
>
>For laravel, assume I download a test app from github, and install it in:
> /var/www/html/asciisd
>
> I do a
>  composer install
>
>The "install/setup" says I should do a
> >>composer require asciisd/referrals-laravel
> as well.
>
>Should this be done while within the " /var/www/html/asciisd" or in
>the parent dir " /var/www/html"
>
> doing this from the inner dir, gets an err
>    Root package 'asciisd/referrals-laravel' cannot require itself in
>its composer.json
>
>I'm currently looking over github code samples, as well as numerous vids..
>
>thanks

It should be done in the same directory as the composer.json file. If you think about it, it makes sense, as that's the config for your composer install.