User

You may experience the problem that 'class Inertia\Inertia is not found' when going to edit user profiles. If this happens double check the following steps.

Model

Make sure you have a User class set up in your models. App\Models\User.php .

This extends the Medialight Textstem user that is the basis for the Textstem Login system

namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Fortify\TwoFactorAuthenticatable;
use Laravel\Jetstream\HasProfilePhoto;
use Laravel\Sanctum\HasApiTokens;
use Medialight\Textstem\Models\User as MedialightUser;

class User extends MedialightUser
{
use HasApiTokens;
use HasFactory;
use HasProfilePhoto;
use Notifiable;
use TwoFactorAuthenticatable;

/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'email',
'password',
];

/**
* The attributes that should be hidden for serialization.
*
* @var array
*/
protected $hidden = [
'password',
'remember_token',
'two_factor_recovery_codes',
'two_factor_secret',
];

/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];

/**
* The accessors to append to the model's array form.
*
* @var array
*/
protected $appends = [
'profile_photo_url',
];
}

Jetstream config

Livewire is used for the user management pages so make sure this is set in the jetstream config:

'stack' => 'livewire',

Blade Files

Make sure you have the blade files in the resources/views/profile directory:

  • delete-user-form.blade.php
  • logout-other-browser-sessions-form.blade.php
  • show.blade.php
  • two-factor-authentication-form.blade.php
  • update-password-form.blade.php
  • update-profile-information-form.blade.php

Actions

Make sure the Actions/Fortify files reference the Textstem User:

use Medialight\Textstem\Models\User;