无法使用html::style
大家好,我是一个初学者.
我从github上下载了laravel源代码以后 基本框架跑起来了
然后 composer require illuminate/html
我在模板里面使用{!! HTML::script('//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800') !!}
就不行了, 但是使用{!! Form::open() !!}
{!! Form::close() !!}就可以,
然后我使用composer update 得到了一个报错:`zhoupeng@zhoupeng-OptiPlex-380:/var/www/laravel$ composer update
PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/composer:0
PHP 2. require() /usr/local/bin/composer:25
PHP 3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
PHP 4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
PHP 5. Composer\Console\Application->doRun() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 6. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:147
PHP 7. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 8. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP 9. Composer\Command\UpdateCommand->execute() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP 10. Composer\Command\Command->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:88
PHP 11. Composer\Console\Application->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/Command.php:53
PHP 12. Composer\Factory::create() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:225
PHP 13. Composer\Factory->createComposer() phar:///usr/local/bin/composer/src/Composer/Factory.php:490
PHP 14. Composer\Plugin\PluginManager->loadInstalledPlugins() phar:///usr/local/bin/composer/src/Composer/Factory.php:296
PHP 15. Composer\Plugin\PluginManager->loadRepository() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:71
PHP 16. Composer\Plugin\PluginManager->registerPackage() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:141
PHP 17. Composer\Plugin\PluginManager->addPlugin() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:256
PHP 18. Fxp\Composer\AssetPlugin\FxpAssetPlugin->activate() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:86
PHP 19. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->__construct() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php:90
PHP 20. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initialize() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:77
PHP 21. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initInstalledPackages() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:259
Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
Call Stack:
0.0001 234152 1. {main}() /usr/local/bin/composer:0
0.0066 423976 2. require('phar:///usr/local/bin/composer/bin/composer') /usr/local/bin/composer:25
0.0400 3628936 3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
0.0431 3974696 4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
0.0441 4107256 5. Composer\Console\Application->doRun() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
0.0453 4226864 6. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:147
0.0454 4227304 7. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
0.0454 4227776 8. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
0.0458 4232184 9. Composer\Command\UpdateCommand->execute() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
0.0459 4232760 10. Composer\Command\Command->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:88
0.0459 4233000 11. Composer\Console\Application->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/Command.php:53
0.0459 4233080 12. Composer\Factory::create() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:225
0.0459 4234040 13. Composer\Factory->createComposer() phar:///usr/local/bin/composer/src/Composer/Factory.php:490
0.1109 7734368 14. Composer\Plugin\PluginManager->loadInstalledPlugins() phar:///usr/local/bin/composer/src/Composer/Factory.php:296
0.1422 8568904 15. Composer\Plugin\PluginManager->loadRepository() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:71
0.1431 8583504 16. Composer\Plugin\PluginManager->registerPackage() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:141
0.1457 8802400 17. Composer\Plugin\PluginManager->addPlugin() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:256
0.1457 8802976 18. Fxp\Composer\AssetPlugin\FxpAssetPlugin->activate() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:86
0.1462 8860728 19. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->__construct() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php:90
0.1465 8882480 20. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initialize() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:77
0.1467 8902096 21. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initInstalledPackages() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:259`
不知道是哪里的问题啊
我从github上下载了laravel源代码以后 基本框架跑起来了
然后 composer require illuminate/html
我在模板里面使用{!! HTML::script('//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800') !!}
就不行了, 但是使用{!! Form::open() !!}
{!! Form::close() !!}就可以,
然后我使用composer update 得到了一个报错:`zhoupeng@zhoupeng-OptiPlex-380:/var/www/laravel$ composer update
PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/composer:0
PHP 2. require() /usr/local/bin/composer:25
PHP 3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
PHP 4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
PHP 5. Composer\Console\Application->doRun() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 6. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:147
PHP 7. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 8. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP 9. Composer\Command\UpdateCommand->execute() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP 10. Composer\Command\Command->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:88
PHP 11. Composer\Console\Application->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/Command.php:53
PHP 12. Composer\Factory::create() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:225
PHP 13. Composer\Factory->createComposer() phar:///usr/local/bin/composer/src/Composer/Factory.php:490
PHP 14. Composer\Plugin\PluginManager->loadInstalledPlugins() phar:///usr/local/bin/composer/src/Composer/Factory.php:296
PHP 15. Composer\Plugin\PluginManager->loadRepository() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:71
PHP 16. Composer\Plugin\PluginManager->registerPackage() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:141
PHP 17. Composer\Plugin\PluginManager->addPlugin() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:256
PHP 18. Fxp\Composer\AssetPlugin\FxpAssetPlugin->activate() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:86
PHP 19. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->__construct() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php:90
PHP 20. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initialize() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:77
PHP 21. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initInstalledPackages() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:259
Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
Call Stack:
0.0001 234152 1. {main}() /usr/local/bin/composer:0
0.0066 423976 2. require('phar:///usr/local/bin/composer/bin/composer') /usr/local/bin/composer:25
0.0400 3628936 3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
0.0431 3974696 4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
0.0441 4107256 5. Composer\Console\Application->doRun() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
0.0453 4226864 6. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:147
0.0454 4227304 7. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
0.0454 4227776 8. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
0.0458 4232184 9. Composer\Command\UpdateCommand->execute() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
0.0459 4232760 10. Composer\Command\Command->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:88
0.0459 4233000 11. Composer\Console\Application->getComposer() phar:///usr/local/bin/composer/src/Composer/Command/Command.php:53
0.0459 4233080 12. Composer\Factory::create() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:225
0.0459 4234040 13. Composer\Factory->createComposer() phar:///usr/local/bin/composer/src/Composer/Factory.php:490
0.1109 7734368 14. Composer\Plugin\PluginManager->loadInstalledPlugins() phar:///usr/local/bin/composer/src/Composer/Factory.php:296
0.1422 8568904 15. Composer\Plugin\PluginManager->loadRepository() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:71
0.1431 8583504 16. Composer\Plugin\PluginManager->registerPackage() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:141
0.1457 8802400 17. Composer\Plugin\PluginManager->addPlugin() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:256
0.1457 8802976 18. Fxp\Composer\AssetPlugin\FxpAssetPlugin->activate() phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:86
0.1462 8860728 19. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->__construct() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php:90
0.1465 8882480 20. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initialize() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:77
0.1467 8902096 21. Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter->initInstalledPackages() /home/zhoupeng/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php:259`
不知道是哪里的问题啊
1 个回复
douyasi
赞同来自: