Closed harmon1ca closed 7 years ago
Just quick shot, getPrefix
method stands on Controller.php and
Handler.php
try to remove or tweak this method on the Controller.php
/*fixes unwanted redirects when validation fails*/
public function validate(Request $request, array $rules, array $messages = [], array $customAttributes = [])
{
$validator = $this->getValidationFactory()->make($request->all(), $rules, $messages, $customAttributes);
if ($validator->fails()) {
if (Route::current()->getPrefix() === 'api') {
$message = $validator->errors()->first();
throw new ValidationException($message);
} else {
throw new ValidationException($this);
}
}
}
and see #421 and #423
I remove getPrefix from Controller.php and use Handler.php #423 request. And it work, thanks.
I try to install you package on centos and get problem. I get 500 error on home page. In logs i have:
file httpd.conf
<Directory /var/www/admen/data/www/domen> Options -ExecCGI -Includes php_admin_value open_basedir "/var/www/admin/data:.:/usr/lib/php:/usr/local/lib/php:/tmp" php_admin_flag engine on AllowOverride All </Directory> <VirtualHost *:81 > ServerName domen CustomLog /var/www/httpd-logs/domen.access.log combined DocumentRoot /var/www/admin/data/www/domen/public ErrorLog /var/www/httpd-logs/domen.error.log ServerAdmin mail ServerAlias www.domen SuexecUserGroup admin admin AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml AddType application/x-httpd-php-source .phps php_admin_value open_basedir "/var/www/admin/data:.:/usr/lib/php:/usr/local/lib/php:/tmp" php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f mail" php_admin_value upload_tmp_dir "/var/www/admin/data/mod-tmp" php_admin_value session.save_path "/var/www/admin/data/mod-tmp" DirectoryIndex index.php </VirtualHost>
permissions on files 755, and 'storage', 'bootstrap/cache' 1777
host: