2 ms·
How would you rewrite this? Unique checks the database for an existing value. validate('title' => 'required|unique'); Laravel validation can accept a callbac
by wolco 9y ago
How would you rewrite this? Unique checks the database for an existing value.
validate('title' => 'required|unique');
Laravel validation can accept a callback as well. Laravel offers a lot of helpful small improvements that speed up development overall.