草庐IT

laravel-censor

全部标签

php - Laravel 5.1 cron 在 OVH 中不工作

我正在尝试在我的OVH中运行一个cron,但它不接受命令:phpartisanschedule:run1>>/dev/null2>&1发生错误:它说:Thecharactersfortherecordsareletters,numbers,andcharacters-_./Moreover,itisforbiddentoaccessparentfolders 最佳答案 使用Laravel文档中的示例以及您的工作目录的完整路径:*****php/path/to/artisanschedule:run>>/dev/null2>&1htt

php - 无法猜测 mime 类型,因为没有可用的猜测器 Laravel 5.2

所以当我想提交我的表单时,我得到了这个:无法猜测mime类型,因为没有可用的猜测器(是否启用了php_fileinfo扩展?)我在php.ini中启用了-php_fileinfo扩展。我还重新启动了本地主机服务器。这是我的规则:'img_1'=>'required|mimes:png,gif,jpeg',这是我提交表单时得到的:在MimeTypeGuesser->guess('C:\xampp\tmp\php2490.tmp')inFile.phpline79这是我上传图片的方式:publicfunctionstoreAuction(AuctionSubmitRequest$reque

php - Laravel 命令-> 选择循环

使用Laravel5.2(当前最新版本)在使用artisan函数choice()时会循环。我的代码是基本的:choice('selectyes',['yes']);}}当我运行时phpartisanfunction:menu我明白了selectyes:[0]yes>[ERROR]Undefinedvariable:outputselectyes:[0]yes>[ERROR]Undefinedvariable:output它不等待输入就不停地循环。它在Windows7和DebianGNU/Linux8(jessie)上运行良好,但在CentOS6.7版(最终版)上全新安装laravel可

php - 使用 Laravel 的队列发送消息

我想通过电子邮件或短信或推送通知发送消息,我想使用Laravel的队列。假设我有超过10000封电子邮件要通过队列发送。这一行开始队列推送:Queue::push('SendEmail',array('email'=>'me@email.com'));现在我不知道这个队列对ironMQ到底做了什么,意思是我的消息在推送后什么时候开始发送以及ironMQ有什么好处?有什么帮助或想法吗?提前致谢。 最佳答案 外部服务只是管理器,如果你想推迟工作,请使用Queue::later()。 关于ph

php - laravel 帖子无法正常工作

我正在开发简单的laravel项目,其中用户有一个注册页面。为此,我使用了两种方法register(get方法)和postregister(post方法)。我的代码:publicfunctionregister(){returnview('auth/register');}publicfunctionpostregister(Request$req){dd("sowmya");$user=newUser();$user->name=$req->get('username');$user->email=$req->get('email');dd($user);$user->passwor

php - Laravel 5.1 Auth::attempt() 在 Composer 更新后不起作用

我在Laravel5.1中的项目,在Composer更新后我无法登录在我运行之前一切正常composerupdate我使用的是内置标准Laravel'sregisterandloginprocessAuthController.php中的函数Auth::attempt()总是返回false。我在Laravel5.1的新项目上测试过,还是一样的问题。我重置了密码,创建了新用户,但没有任何效果……我收到这个错误:Thesecredentialsdonotmatchourrecords那些是更新的包:Updatingdependencies(includingrequire-dev)-Rem

php - 通过 Laravel Route 在变量中传递 "\"和 "/"

首先,如果这是一个糟糕的问题/做法,我们深表歉意。我是Laravel的新手,所以我还在努力掌握它。我试图在Laravel5路由中传递包含正斜杠(/)和反斜杠()的变量,但我遇到了一些困难。我正在使用以下内容:api.dev/api/v1/service/DfDte\/uM5fy582WtmkFLJg==。尝试1:我的第一次尝试使用了以下代码,自然导致了404。路线:Route::group(array('prefix'=>'api/v1'),function(){Route::resource('service','ServiceController');});Controller:p

php - 我的 Laravel 5.2.10 session 不会持续

我有一个全新的Laravel5安装,事实上我已经在多个版本上尝试过这个并且一直遇到同样的问题。除了将session驱动程序设置为redis之外,我没有更改任何默认值。(基于文件也有同样的问题)。我有两条路由设置如下Route::get('/set/{value}',function($value){var_dump(Session::getId());Session::set('test',$value);returnview('welcome');});Route::get('/get',function(){return'Get'.Session::get('test');});如

php - 在 laravel 5 上使用 Socialite-package 进行 Linkedin 登录

我目前正在尝试使用socialite创建使用LinkedIn的身份验证,但我在LinkedIn上创建应用程序并在其上添加回调URL,如下所示:http://localhost:8080/callback/linkedin我在config/services.php中添加:'linkedin'=>['client_id'=>'xxxxx','client_secret'=>'xxxxx','redirect'=>'http://localhost:8080/callback/linkedin',],我还创建了路由和函数(我为facebook和google做了这个,它在那里工作正常没问题)但

php - 使用 Laravel - Php 将输入值传递给 URL

我的目的是获取Actionurl形式的输入值。HTML:find}}">{{csrf_field()}}路线:Route::post('/search/the/{names}','maincontroller@search');Route::get('/tfind','maincontroller@takefind');Controller:publicfunctionsearch($names,Request$request){//dd($request->find);$names=$request->input('find');if(!empty($names)){$find=DB