腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Laravel
get
response
、
、
、
我正在使用
laravel
guzzle包从这个 url获取响应 try { $responseBodyAsString
浏览 14
提问于2020-06-09
得票数 1
2
回答
Laravel
4休息路线参数
、
、
、
、
这可能是个简单的问题,但我正在用
Laravel
进行测试。我这样安排我的路线:Route::
get
('users',array('as'=> 'users', 'uses'=> 'UsersController@index')); Route::
get
('users/{id}', array('as' => 'use
浏览 0
提问于2013-10-09
得票数 0
回答已采纳
2
回答
调用未定义的方法ExampleTest::assertStatus()
、
、
php use
Laravel
\Lumen\Testing\DatabaseTransactions; * @return void public function testExample() $this->
get
('/');$this->assertEquals( $this->app-&
浏览 1
提问于2019-02-14
得票数 6
回答已采纳
1
回答
Laravel
5.5单元测试控制器方法
、
、
、
* @return voidpublic function testAllCompaniesOnHomepageWithoutLicensekey() $this->call('
GET
浏览 0
提问于2017-10-06
得票数 1
回答已采纳
1
回答
jQuery TokenInput不工作(显示搜索结果)与
laravel
、
、
Route::
get
('hashes',function(){});$names[] = array('id' => 1, 'name' =>
浏览 3
提问于2015-02-27
得票数 0
回答已采纳
4
回答
如何在5中从视图中访问cookie
、
//HomeController.php{ return
浏览 5
提问于2016-03-20
得票数 7
2
回答
重定向至外部网站时,
Laravel
会话未持续
、
、
、
Session::put('transactionInfo',$transactionDetails);Session::
get
; //Session::flush(); });
浏览 1
提问于2014-06-27
得票数 3
5
回答
JSONP与
Laravel
、
、
、
、
浏览器将JSONP请求发送给
Laravel
,
Laravel
将结果返回给browser。$callback = Input::
get
('callback');
Response
::JSON($result)将返回我相信的通常的JSON响应,而不是带有回调函
浏览 11
提问于2012-12-06
得票数 4
回答已采纳
2
回答
Laravel
4删除默认的/index控制器函数
、
、
、
是否可以在默认的/index restful控制器函数上删除getIndex?Route::controller('registration', 'RegisterController', array()); class RegisterController extends UserController { { // Show the register pa
浏览 1
提问于2013-10-04
得票数 4
回答已采纳
6
回答
Laravel
-测试重定向后会发生什么
、
、
、
我有一个控制器,在提交电子邮件后,执行重定向到家里,如下所示:我正在为它编写测试,我不知道如何使phpunit遵循重定向,测试成功信息: $crawler = $this->client->request('POST', '/contact', ['email' => '
浏览 5
提问于2014-12-03
得票数 33
回答已采纳
2
回答
>postJson到外部url?
、
、
我正在编写一个
Laravel
测试用例,在这里我需要向外部API发出HTTP请求。但是我的$this->postJson()总是给我一个例外。void parent::setUp(); { $
response
postJson('https://apitest.cybersource.com/flex/v1/',['cardNumb
浏览 5
提问于2020-09-16
得票数 0
回答已采纳
3
回答
Laravel
5.5测试-调用未定义方法::请参见()
、
、
> 'For tickets, call (555) 555-5555' // View the concert listing $this->
get
浏览 0
提问于2017-09-23
得票数 4
回答已采纳
1
回答
Vue js POST失败,点击登录:“航班前的响应有无效的HTTP状态代码404”
、
、
、
$http.post('http://localhost:8000/oauth/token/', data).then((
response
) => { }, (
response
) => { }) /* this.$http.
get
(&
浏览 0
提问于2016-12-21
得票数 2
1
回答
用口吻捕获CUrl Timout异常
、
、
、
我使用的是PHP,它工作得很好,但是速度很慢,而且有点有限,所以我决定尝试使用file_
get
_contents。不幸的是,我发现即使使用记录在案的异常处理,也很难停止抛出异常。</h3>'; $res = $client->request('
GET
', $websiteFQDN);有人建议尝试
Laravel<
浏览 4
提问于2020-07-03
得票数 1
3
回答
执行传递的响应时未显示警报
、
\Carbon::parse(request()->input('form.birthdate'); return
response
(['message' => "That's less than 6, not allowed",500]);在我的axios请求中 }).then(
response
=> {if (
response
.status === 50
浏览 0
提问于2020-04-24
得票数 0
4
回答
从ajax获取参数到控制器
Laravel
、
、
、
、
我想将id的值传递给
Laravel
中的控制器$(document).ready(function () { 'url': 'search', 'type': '
GET
('Error'+
re
浏览 0
提问于2017-10-05
得票数 3
1
回答
AngularJS分页与
laravel
模型-分页条显示不正确
、
、
、
2,$scope.maxSize = 2; $http.
get
('/employee/'+offset).then(function (
response
) { $scope.employees =
response
.data.data;$scope.totalItems=
response
.data.tot
浏览 5
提问于2017-05-15
得票数 2
回答已采纳
2
回答
在
laravel
中调用http请求时如何添加日志?
、
、
$
response
= Http::
get
('http://example.com'); Log::info(`add request and header and
response
`); }); 并像这样调用http r
浏览 126
提问于2021-07-14
得票数 0
2
回答
拉勒维尔: PHPUnit导致了每件事的404 s
、
、
我正在尝试用PHPUnit为我的
Laravel
应用程序运行一些基本的单元测试。public function testThis() $
response
= $this->route('
GET
', 'myRouteName', ['myParam' => 5 dd($
response
-&
浏览 3
提问于2016-09-26
得票数 5
1
回答
Laravel
API身份验证
、
、
我正在使用
Laravel
构建一个API,它将被我的移动和Web应用程序使用。我对身份验证感到困惑。在这种情况下,身份验证如何工作?
浏览 1
提问于2015-10-03
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券