akaunting / akaunting

Online Accounting Software
https://akaunting.com
Other
8.14k stars 2.46k forks source link

Error in seeder file, "arguement company" missing #3170

Closed meghakundu closed 5 months ago

meghakundu commented 5 months ago

Akaunting version

3.1.8

PHP version

8.2.0

Operating system

windows10

Steps to reproduce

error comes when we seed data in db.

Expected result

php artisan db:seed --class=AccountSeeder

image

Actual result

image

Additional comments

The naming of seeder files should be proper.

Relevant log output

No response

cuneytsenturk commented 5 months ago

You don't need to run a piecemeal seeder to install Akaunting.

php artisan install --db-name=‘akaunting’ --db-username=‘root’ --db-password=‘pass’ --admin-email=‘admin@company.com’ --admin-password=‘123456’

You can install it in one line using the command here.

If you want to run Account seeder alone. You must also specify the company_id you want this seeder to run.