As the final length of the encrypted text is not predictable and is longer than its plain text counterpart, make sure the associated database column is of TEXT type or larger. In addition, since the values are encrypted in the database, you will not be able to query or search encrypted attribute values
Şifrelenmiş metnin nihai uzunluğu tahmin edilemediğinden ve düz metin karşılığından daha uzun olduğundan, ilişkili veritabanı sütununun TEXT türünde veya daha büyük olduğundan emin olun. Ayrıca, değerler veritabanında şifrelendiğinden, şifrelenmiş öznitelik değerlerini sorgulayamaz veya arayamazsınız.
bu yukardaki paragraf sadece Encrypted Casting içinmi geçerli ? yoksa aşagıdaki dökümantasyondaki kod içinde geçerlimi ?
https://laravel.com/docs/10.x/encryption#using-the-encrypter
<?php
namespace App\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Crypt;
class DigitalOceanTokenController extends Controller
{
/**
* Store a DigitalOcean API token for the user.
*/
public function store(Request $request): RedirectResponse
{
$request->user()->fill([
'token' => Crypt::encryptString($request->token),
])->save();
return redirect('/secrets');
}
}