You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to use this, but when saving no UUID is entered into the db.
Here is my setup:
DB:
Name: uuid char(36) utf8mb4_unicode_ci
Account Model:
use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\Sluggable;
use Emadadly\LaravelUuid\Uuids;
class Account extends Model
{
use Uuids;
@empsean i'm sorry for delay really i'm very busy, so I make a similar example and it works without any problem
please check your code with the below lines.
db Schema
Schema::create('todos', function (Blueprint$table) {
$table->increments('id');
$table->uuid('uuid');
$table->string('name');
$table->text('body');
$table->timestamps();
});
Attempting to use this, but when saving no UUID is entered into the db.
Here is my setup:
DB:
Name: uuid char(36) utf8mb4_unicode_ci
Account Model:
Controller:
`public function saveUUID(Account $account){
}`
The uuid field is left null, and the response for $example does not include the uuid.
What am i missing or doing wrong?
The text was updated successfully, but these errors were encountered: