Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'Spatie\LaravelSettings\SettingsMigration' not found #10

Closed
thomas-j92 opened this issue Nov 24, 2020 · 2 comments
Closed

Class 'Spatie\LaravelSettings\SettingsMigration' not found #10

thomas-j92 opened this issue Nov 24, 2020 · 2 comments

Comments

@thomas-j92
Copy link

My Migration file (same as your example):

`use Spatie\LaravelSettings\SettingsMigration;

class CreateGeneralSettings extends SettingsMigration
{
public function up(): void
{
$this->migrator->add('general.site_name', 'Spatie');
$this->migrator->add('general.site_active', true);
}
}`

When I proceed to run 'php artisan migrate' I get the following error:

Class 'Spatie\LaravelSettings\SettingsMigration' not found

Any ideas what I'm doing wrong?

Cheers

@ragingdave
Copy link
Contributor

It might just be simply that you have the wrong FQCN, which should actually be Spatie\LaravelSettings\Migrations\ SettingsMigration. This looks like the docs are just wrong for this specific example.

@rubenvanassche
Copy link
Member

That's correct, @alexjustesen added a PR that solves this: #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants