@sqrtqiezi 不会的,我加了Auth::logout();return 页面。
@JellyBool 不是的,我测过了你的社区开发,退出之后,点击返回是不会回到需要登录才能到达的页面。我也测过了淘宝,退出之后,点击返回也是回不去的,仍然在淘宝首页。
我想把数据库中的数据库中的数据导入到Excel表格中,官网介绍的都是把从数据库取出的数据按照行放入excel中,我现在想把从数据库取出的数据按照列导入到excel中。请各位指教,谢谢。
@JellyBool 谢谢了。我先自己学着。我会关注你的视频的。
@JellyBool 这个问题我是知道的,这个url是不能直接访问的。我现在刚开始看laravel的测试,就是根据官网的资料来自学的。您能不能给点建议?给个实例?或者有视频也好。谢谢了。
当我在进行laravel5的phpunit测试时,总是出现如下错误:
当我在ExampleTest.php中写测试路由是根路由时,才能测试成功,如下:
$this->visit('/') ->see('生态指标分析系统');
但是当我写的visit不是根路由时,总是提示
A request to [http://localhost/user/auth] failed. Received status code [405].
错误;代码如下:
$this->visit('/user/auth') ->type('teacher','name') ->type('123321123','password') ->press('登录') ->seePageIs('/map');
完整错误提示如下:
请大家给予指导,这个问题困扰了我很久了。
我想使用intervention/image这种图片剪裁工具。可是当我执行composer require intervention/image
时报错如下:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- intervention/image 2.3.6 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for intervention/image ^2.3 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6].
Installation failed, reverting ./composer.json to its original content.
请大家给予指点,谢谢各位。
@JellyBool 其实通过不是非要通过路由,只是我暂时不会其他方法。我尝试一下你的方法。
@JellyBool 我举例说明。
form表单提交了连个参数,通过url传递到了FactorsController中的import方法中,然后在import方法中如何再通过route路由把这两个参数传递到ExcelController的export方法中。(我有其他用处,在此处就是简写了)。谢谢了。
我想在一个控制器中接受form表单提交的两个数据,那么如何传把这两个数据通过route路由递到另外一个控制器中呢??(简言之,就是如何在两个控制器之间通过路由传递两个参数)谢谢指导。