thesimons started a new conversation+100 XP
4mos ago
Hello,
I'm dev mode locally using Herd Pro. I'm working with a pretty heavy panel powered by Filament 4.
I have tweaked the tweak-able things. I have max exec time at 300 seconds. But it keeps going timeout.
Any idea how to avoid it? I have hard this issue before but the solution was for Windows.
Thanks, Simom
thesimons wrote a reply+100 XP
5mos ago
That's a good point! However this is the logic for panel into the "private area".
Many errors would "redundant". In example if new_password is missing, I just need to have an error saying "password missing". I don't need "password missing" and "passwords don't match".
thesimons wrote a reply+100 XP
5mos ago
I have redacted the guard with a generic "foo" for privacy.
thesimons started a new conversation+100 XP
5mos ago
Hello,
don't kill me please. I tried the Laravel "validation" style but I'm unable to get the same result for the following (dirty) code.
public function update(Request $request)
{
if (empty($request->current_password)) {
return back()->withInput()
->with('error', 'lang.profile.settings.preferences.password.current_password.error.required')
->with('hasLinkBack', true);
}
if (empty($request->new_password)) {
return back()->withInput()
->with('error', 'lang.profile.settings.preferences.password.new_password.error.required')
->with('hasLinkBack', true);
}
if (strlen($request->new_password) < 8) {
return back()->withInput()
->with('error', 'lang.profile.settings.preferences.password.new_password.error.min')
->with('hasLinkBack', true);
}
if (empty($request->new_password_verify)) {
return back()->withInput()
->with('error', 'lang.profile.settings.preferences.password.new_password_verify.error.required')
->with('hasLinkBack', true);
}
if ($request->new_password !== $request->new_password_verify) {
return back()->withInput()
->with('error', 'lang.profile.settings.preferences.password.new_password_verify.error.different')
->with('hasLinkBack', true);
}
// Check current password
if (!Hash::check($request->current_password, auth('foo')->user()->password)) {
return back()->withInput()
->with('error', 'lang.profile.settings.preferences.password.current_password.error.incorrect')
->with('hasLinkBack', true);
}
// Update password
auth('foo')->user()->update(['password' => Hash::make($request->new_password)]);
return redirect()
->route('my.profile.settings.preferences.password.edit')
->with('success', 'lang.profile.settings.preferences.password.updated_successfully');
}
Basically I want to flash one error at time. Could you please suggest a cleaner approach?
Thanks Simon
thesimons started a new conversation+100 XP
5mos ago
Hello,
is there any migration command in order to refresh / reset a single table not the entire database?
During development I prefer to refactor migrations instead of adding new migration to add/delete/edit previous migrations.
Thanks, Simon
thesimons wrote a reply+100 XP
5mos ago
I have never said that 8.5 has something wrong.
thesimons started a new conversation+100 XP
5mos ago
Hello,
Yesterday - while deploying a new server - I have the funny idea to install PHP8.5 just released.
As result for that I got a list of errors. I think it'd be better to give it few weeks before thinking about deploying in production.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- brianium/paratest[v7.8.3, ..., v7.8.4] require php ~8.2.0 || ~8.3.0 || ~8.4.0 -> your php version (8.5.0) does not satisfy that requirement.
- brianium/paratest[v7.9.0, ..., v7.11.2] require php ~8.3.0 || ~8.4.0 -> your php version (8.5.0) does not satisfy that requirement.
- pestphp/pest v3.8.2 requires brianium/paratest ^7.8.3 -> satisfiable by brianium/paratest[v7.8.3, ..., v7.14.2].
- brianium/paratest v7.14.2 requires phpunit/phpunit ^12.4.1 -> satisfiable by phpunit/phpunit[12.4.1, 12.4.2, 12.4.3, 12.4.4].
- brianium/paratest v7.14.1 requires phpunit/phpunit ^12.4.0 -> satisfiable by phpunit/phpunit[12.4.0, ..., 12.4.4].
- brianium/paratest v7.14.0 requires phpunit/phpunit ^12.3.15 -> satisfiable by phpunit/phpunit[12.3.15, ..., 12.4.4].
- brianium/paratest v7.13.0 requires phpunit/phpunit ^12.3.9 -> satisfiable by phpunit/phpunit[12.3.9, ..., 12.4.4].
- brianium/paratest v7.12.0 requires phpunit/phpunit ^12.3.6 -> satisfiable by phpunit/phpunit[12.3.6, ..., 12.4.4].
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.4.4.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.14.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.13.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.12.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.11.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.10.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.8.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.7.
- pestphp/pest v3.8.2 conflicts with phpunit/phpunit 12.3.6.
- pestphp/pest-plugin-laravel v3.2.0 requires pestphp/pest ^3.8.2 -> satisfiable by pestphp/pest[v3.8.2, v3.8.3, v3.8.4].
- Conclusion: don't install pestphp/pest v3.8.3 (conflict analysis result)
- Conclusion: don't install pestphp/pest v3.8.4 (conflict analysis result)
- Root composer.json requires pestphp/pest-plugin-laravel ^3.2 -> satisfiable by pestphp/pest-plugin-laravel[v3.2.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Thanks, Simon