Code Monkey home page Code Monkey logo

Comments (5)

TheColorRed avatar TheColorRed commented on May 26, 2024 1

when it asks for a database, it is asking for this: --database=dbname in your case it would be dbname

You need to have the database configured in laravel (/config/database.php) for this to work, so for example:

<?php
return [
    'connections' => [
		'dbname' => [
			'driver'    => 'mysql',
			'host'      => env('DB_HOST', '127.0.0.1'),
			'port'	    => env('DB_PORT', '3306'),
			'database'  => env('DB_DATABASE'),
			'username'  => env('DB_USERNAME'),
			'password'  => env('DB_PASSWORD'),
			'charset'   => 'utf8',
			'collation' => 'utf8_unicode_ci',
			'prefix'    => '',
			'strict'    => false,
		]
    ]
]

This is according to php artisan migrate:status -h which outputs:

Usage:
  migrate:status [options]

Options:
      --database[=DATABASE]  The database connection to use.
      --path[=PATH]          The path of migrations files to use.
  -h, --help                 Display this help message
  -q, --quiet                Do not output any message
  -V, --version              Display this application version
      --ansi                 Force ANSI output
      --no-ansi              Disable ANSI output
  -n, --no-interaction       Do not ask any interactive question
      --env[=ENV]            The environment the command should run under.
  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for
 more verbose output and 3 for debug

Help:
 Show the status of each migration

from vscode-laravel-artisan.

TheColorRed avatar TheColorRed commented on May 26, 2024

Do you have an example Artisan project I can test with?

from vscode-laravel-artisan.

heinzin avatar heinzin commented on May 26, 2024

I don't have artisan project .
I just installed the vscode extension
uninstalled and reinstall
but not work
asked " what database should I use ?"
if I input the db name , not working migration commands.
but work fine without db name . migration commands

version laravel artisan 0.0.7

from vscode-laravel-artisan.

heinzin avatar heinzin commented on May 26, 2024

Manually in terminal
php artisan migrate:status --database=dbname -vvv

[InvalidArgumentException]
Database [job] not configured.

from vscode-laravel-artisan.

heinzin avatar heinzin commented on May 26, 2024

sorry bro that my bad
I miss understandard
that "what database should I use ?"
It mean database types e.g mysql,sqlite,redis,etc....

Not Database Name

from vscode-laravel-artisan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.