草庐IT

laravel-routing

全部标签

xml - AWS route53 删除资源集

我正在使用Amazon推荐的dnscurl.pl,以便从route53中删除记录集。我遇到了一个我无法弄清楚的错误。Route53正在响应错误:InvalidInput。消息:无效的XML;cvc-elt.1:找不到元素“ChangeResourceRecordSetsRequest”的声明。SenderInvalidInputInvalidXML;cvc-elt.1:Cannotfindthedeclarationofelement'ChangeResourceRecordSetsRequest'.51c5c1de-c246-11e2-b977-934c36c18aa7我的要求如下:

xml - 使用 Laravel Package orchestral/parser 导入 XML 的问题

我有这个要导入的XML:desc"price="40"brand=""weight="100"in_stock="Y"/>desc"price="40"brand=""weight="100"in_stock="Y"/>我正在使用Laravel5和这个包:https://github.com/orchestral/parser所以我正在运行这段代码:$xml=XmlParser::load('https://www.url/feed.xml');$product=$xml->parse(['product_id'=>['uses'=>'product::product_id'],'ti

xml - laravel 下载一个新创建的 xml 文件

我正在尝试创建xmlfile并从我的程序下载它,但它运行得不是很好。这是我的代码:$xml=newSimpleXMLElement('');$xml->addAttribute('version','1.0');$xml->addChild('datetime',date('Y-m-dH:i:s'));$person=$xml->addChild('person');$person->addChild('firstname','Someone');$person->addChild('secondname','Something');$person->addChild('telepho

php - 在 Windows 10 上的 apache2.4 上启动 laravel 应用程序

我有一个laravel应用程序,我使用phpartisanserve对其进行了测试。我发现这是一种不好的做法,因为它没有在生产中使用。我已经安装了apache2.4,它工作正常,当我打开localhost时我看到“ItWorks”。现在我尝试在我的PC上通过apache启动我的laravel应用程序。为此我做了以下步骤:编辑Apache\conf中的httpd.conf,我取消注释这一行:LoadModulerewrite_modulemodules/mod_rewrite.so编辑了Apache\conf\extra中的httpd-vhosts.conf,我添加了:DocumentR

Laravel Seeder 中的 PHP_EOL 问题

我尝试在Laravelseeder的run()函数中运行以下行。$numbers=运行phpartisanmigrate:refresh--seed后,我注意到$array的值为:Array(0=>'1234',)预期的结果是:Array([0]=>1[1]=>2[2]=>3[3]=>4[4]=>5)为什么播种器中的explode()函数会忽略行尾? 最佳答案 工作正常$numbers=PHP_EOL的目的是自动为平台选择正确的字符。对于DOSPHP_EOL-\r\n,mac-\r,unix-\n。在当前情况下,您需要静态使用\n。

windows - Laravel 4 在 WAMP/Windows 上的安装问题

首先,我在我的Window7上使用wamp。我打开php-openssl,然后我从github.comgitpulllaravel,然后我把laravel放在我的d:/wamp/www/上,我改变了c:/windows/system32.But当我打开url时http://localhost/laravel/public我看到了这个问题。我是laravel的新手,在Ubuntu上没有安装。我哪里错了,没有pear,还是别的什么?谢谢! 最佳答案 您需要在命令提示符下运行composerinstall。如果您没有Composer,请从

ruby-on-rails - 为什么错误 "No route matches [GET] "/users/sign_out”?

当我登录到我的应用程序时,它显示我已成功登录。但是当我点击导航栏中的链接退出时,它给我一个路由错误。我不确定为什么我总是收到路由错误。我基本上已经尝试了关于此错误的所有答案,但我似乎无法弄清楚。RoutingErrorNoroutematches[GET]"/users/sign_out"Rails.root:c:/Users/Doesha/desktop/pinplugApplicationTrace|FrameworkTrace|FullTraceRoutesRoutesmatchinpriorityfromtoptobottomHelperHTTPVerbPathControll

windows - Laravel 家园 : Provisioning failing on Windows 8

我正在尝试将LaravelHomestead用于Laravel4.2.9项目。这是我正在运行的:Windows8.164位VirtualBox4.3.17Vagrant1.6.5最新的Homestead版本当第一次使用vagrantup运行盒子或发出vagrantprovision命令时,我得到这个:==>default:Runningprovisioner:shell...default:Running:inlinescript==>default:/tmp/vagrant-shell:line1:/home/vagrant/.ssh/$2:ambiguousredirectTheS

windows - Vagrant laravel homestead 的代理问题

我正在尝试在WindowsPC上使用Laravelhomestead,并在代理后面使用Vagrant。我正在使用“vagrant-proxyconf”并使用代理详细信息更新了我的vagrantfileVagrant.configure("2")do|config|ifVagrant.has_plugin?("vagrant-proxyconf")config.proxy.http="http://$my_account:$my_password@yproxyserver.com.au:8080"config.proxy.https="http://$my_account:$my_pas

angularjs - 如何使用 npm 找到我的机器中已经安装的 angular-route

我是angularjs的初学者,学习了如何使用指令。现在,作为学习MVC模型的一部分,我想为此将模型与View分开,我创建了相应的html和js文件。在我理解的Angular文档上,为了在模型和View之间进行通信,我们需要使用“ngroute”,所以我尝试使用npm命令安装它,如下所示C:\npminstallangular-route我收到以下错误作为输出C:\`--angular-route@1.5.8npmWARNenoentENOENT:nosuchfileordirectory,open'C:\package.json'npmWARN!invalid#1Nodescript