-
-
Notifications
You must be signed in to change notification settings - Fork 714
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
Unable to locate publishable resources #664
Comments
Hey, laravel-activitylog/src/ActivitylogServiceProvider.php Lines 22 to 28 in 5534496
|
Ohh, my. So sorry! Thanks! |
same issue class ActivitylogServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
$package
->name('laravel-activitylog')
->hasConfigFile('activitylog')
->hasMigrations([
'CreateActivityLogTable',
'AddEventColumnToActivityLogTable',
'AddBatchUuidColumnToActivityLogTable',
])
->hasCommand(CleanActivitylogCommand::class);
}
public function registeringPackage()
{
$this->app->bind(ActivityLogger::class);
$this->app->singleton(LogBatch::class);
$this->app->singleton(CauserResolver::class);
$this->app->singleton(ActivityLogStatus::class);
}
public static function determineActivityModel(): string
{
$activityModel = config('activitylog.activity_model') ?? ActivityModel::class;
if (! is_a($activityModel, Activity::class, true)
|| ! is_a($activityModel, Model::class, true)) {
throw InvalidConfiguration::modelIsNotValid($activityModel);
}
return $activityModel;
}
public static function getActivityModelInstance(): ActivityContract
{
$activityModelClassName = self::determineActivityModel();
return new $activityModelClassName();
}
} |
Hi, I got rid of it by running: |
@alinmiron please check your local installed and the referenced documentation version. |
all i did was to run: composer require spatie/laravel-activitylog and I got this, in composer.json: "spatie/laravel-activitylog": "^3.17", ` Using version ^3.17 for spatie/laravel-activitylog
` I have laravel version 8.42.0 Thanks @Gummibeer |
Thank! |
Thanks |
Thank! |
Hi, the same problem is avaiable in https://github.com/spatie/laravel-health |
For future readers: The above did not work for me. I am trying to upgrade an old site currently on L6. This issue is the --provider option strips slashes from the value, and so it does not match the registered providers list. Running without the provider option works, although this may not be a good work-around depending on your situation. |
Hi everybody php: 8.2.8 I try --tag="migrations" --tag="config" is faild php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="config" INFO No publishable resources for tag [migrations].
INFO No publishable resources for tag [config]. Now try is correct, because README.md content like under php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-config" INFO Publishing [activitylog-migrations] assets.
_table.php] DONE
Copying file [C:\WinNMP\WWW\acc_hr\vendor\spatie\laravel-activitylog\database\migrations\add_event_column_to_activity_log_table.php.stub] to [C:\WinNMP\WWW\acc_hr\database\migrations\2023_12_20_141207_add_event_column_to_activity_log_table.php] DONE
Copying file [C:\WinNMP\WWW\acc_hr\vendor\spatie\laravel-activitylog\database\migrations\add_batch_uuid_column_to_activity_log_table.php.stub] to [C:\WinNMP\WWW\acc_hr\database\migrations\2023_12_20_141208_add_batch_uuid_column_to_activity_log_table.php] DONE
Copying file [C:\WinNMP\WWW\acc_hr\vendor\spatie\laravel-activitylog\config\activitylog.php] to [C:\WinNMP\WWW\acc_hr\config\activitylog.php] DONE Just confused ? |
The command
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"
just gives us:Unable to locate publishable resources
We have all the models in a "Models" folder. Can it be the case here?
The text was updated successfully, but these errors were encountered: