Setting up Wave

jasonpatrick02

September 20, 02:14 PM

hello everyone! I was hoping someone could help me out with this issue I'm having when I try to run 'composer install' - below is the error I am getting:

Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update or composer update <package name>. Nothing to install, update or remove Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

Doctrine\DBAL\Driver\PDO\Exception

SQLSTATE[HY000] [1049] Unknown database 'c-app'

at C:\Users\Jason\Sites\c-app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDO\Exception.php:18 14▕ final class Exception extends PDOException 15▕ { 16▕ public static function new(\PDOException $exception): self 17▕ { ➜ 18▕ return new self($exception); 19▕ } 20▕ } 21▕

1 C:\Users\Jason\Sites\c-app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:44 Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))

2 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(App\Providers\AppServiceProvider))

I also tried running 'composer require doctring/dbal' and got the following:

Using version ^3.1 for doctrine/dbal ./composer.json has been updated Running composer update doctrine/dbal Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1 - tcg/voyager is locked to version 1.4.x-dev and an update of this package was not requested. - tcg/voyager 1.4.x-dev requires doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0, ..., 2.13.3] but it conflicts with your root composer.json require (^3.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Any help would be greatly appreciated.

Select One:
alexzerbach

September 20, 06:44 PM

I posted the same error today. Going to follow this thread as well in hopes someone can help you solve it.

Select One:
bobbyiliev

September 20, 11:06 PM

Hi there,

As far as I can see you’ve added a dash in the database name. Note that this is not a valid name. This is not a Wave specific thing but it is a convention for most database engines.

Also first connect to your MySQL instance and create the database. Only once the database has been created, specify it in Wave.

Let me know how it goes.

Best,

Bobby

Select One:
jasonpatrick02

September 21, 07:23 AM

Hi Bobby -

Thank you so much for your help, it seems that it was an issue with how I setup the database. I started with a fresh db and was now able to complete all of the steps, including composer install, artisan migrate, and artisan seed. Now the issue that I'm having is that I cannot see the app at my test URL. I changed wave.test to myapp.test and I'm getting DNS_PROBE_FINISHED_NXDOMAIN in my browser. Any help on this new issue would be greatly appreciated :)

**EDIT - I've installed Valet for Windows and now when I try to access the test site I get "Valet - Not Found" in the tab and '404 not found' within the browser. I will keep investigating to see if I messed up the Valet install or missed a step.

Select One:
jasonpatrick02

September 21, 07:31 AM

@Alex I don't really have experience with MySQL and I was setting up the DB completely wrong. What fixed the issue for me was creating the database in MySQL CLI, I created a user and granted permissions, and then setup the ODBC connection.

Select One:
jasonpatrick02

September 22, 07:55 AM

Update: I've installed Valet for Windows and now when I try to access the test site I get "Valet - Not Found" in the tab and '404 not found' within the browser. I have not been able to figure out why :(

Select One:
bobbyiliev

September 22, 09:56 AM

Hi there,

Happy to hear that you've got the database problem all sorted out.

Regarding Valet, actually according to the Laravel documentation Valet is only available for macOS:

https://laravel.com/docs/8.x/valet

For Windows, you could either just use the WAMP stack and visit your project via localhost directly. Or you could try using Laragon. I've personally not used it actually but it is quite popular for Laravel on Windows.

What I like to do is to use VS Code and do a remote development on a DigitalOcean server:

https://devdojo.com/alexg/remote-development-in-visual-studio

Hope that this helps!

Select One:
jasonpatrick02

September 22, 10:15 AM

Thank you Bobby I will give that a try!

Select One:
bobbyiliev

September 22, 11:19 AM

No problem! Let me know how it goes.

Select One:
Write
Preview
Help
Cursor Start: Cursor End:
Type '/' for commands
Drop Files Here

Markdown Basics

Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet


Bold & Italic

Italics *asterisks*
Bold **double asterisks**


Code

Inline Code
`backtick`Code Block```
Three back ticks and then enter your code blocks here.
```


Headers

# This is a Heading 1
## This is a Heading 2
### This is a Heading 3


Quotes

> type a greater than sign and start typing your quote.

Links

You can add links by adding text inside of [] and the link inside of (), like so:

[link_text](https://google.com)

Lists

To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list

For an unordered list, you can add a dash -, like so:
- The start of my list


Images

You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of [], and the image URL inside of (), like so:

![alt text for image](url_to_image.png)

Dividers

To add a divider you can add three dashes or three asterisks:
--- or ***


Embedding GIFs via Giphy

You can easily embed animated GIFS with the following syntax:
{% giphy https://giphy.com/embed/giphy_id %}


Embedding Codepens

You can also embed a codepen by writing the following:
{% codepen https://codepen.io/your/pen/url %}

You may also choose the default tabs you wish to show your pen by writing the default-tab like so: (default is result)

{% codepen https://codepen.io/your/pen/url default-tab=result,html %}


Embedding CodeSandbox

You can also embed CodeSandbox by writing the following:
{% codesandbox YOUR_CODESANDBOX_EMBED_URL %}


Embedding YouTube Videos

You can also embed a YouTube video by writing the following:
{% youtube VIDEO_ID_HERE %}


Embedding buymeacoffee.com

You can also embed your "Buy me a coffee" button by writing the following:
{% buymeacoffee BUY_ME_A_COFFEE_USERNAME_HERE %}


Please login, or signup to write a response.