我已经设置了应用程序名称
php artisan app:name xyz
Run Code Online (Sandbox Code Playgroud)
如何逐步访问laravel中的应用程序名称?
<?php
class ReportsController extends CController
{
public function __call($name,$argument)
{
echo "test";
}
}
?>
Run Code Online (Sandbox Code Playgroud)
这是我的Yii控制器类,当调用index.php?r=reports/testURL时,它必须调用该__call方法,因为测试方法不存在,但它给出了错误The system is unable to find the requested action test错误.
我正在使用Azure移动服务向我的Windows应用商店应用添加身份验证.根据移动服务文档中的这篇文章,我能够获得UserId以及MobileServiceAuthenticationToken(包括Google和Microsoft帐户)
我的问题是如何在后端移动服务中获取用户信息name, email Id等.我已经阅读了各种文章,解释了如何在Backend移动服务中完成此操作,但在后端移动服务中找不到任何正确实现的内容.MobileServiceAuthenticationToken.NETJavascriptC# + .NET
任何指针赞赏.
谢谢
我正在使用laravel 5框架进行项目。我想为我的课程传递两个parameter通行DELETE方法Controller。
ex.blade.php
<td align='center'>
{!! Form::open(['method' => 'DELETE', 'route'=>['commitee-page-member.destroy',$member->id ,$commitee->id]]) !!}
<button type="submit" class="btn btn-default btn-sm" onclick="return confirm('Are you sure?')"> <span class="glyphicon glyphicon-trash"></span> </button>
{!! Form::close() !!}
</td>
Run Code Online (Sandbox Code Playgroud)
当我点击按钮,我可以看到variable通过url:
网址:
../masterlaw.com/commitee-page-member/1?5
Run Code Online (Sandbox Code Playgroud)
我尝试不同的方式,采用这two parameters1和5。
控制器类代码:
public function destroy(Request $request, $id)
{
//
echo $id;
echo $request['id'];
}
Run Code Online (Sandbox Code Playgroud)
但是我仍然无法记录retrieve数据。请帮我。