Login and user profiles
If you see Class "Inertia\Inertia" not found when editing user profiles, check the following steps.
Model
Make sure the app has a App\Models\User class that extends the Textstem user, Medialight\Textstem\Models\User, which the Textstem login system is built on. (The package points auth.providers.users.model at its own User; set user_model in config/textstemapp.php to use yours.)
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.
*
*
*/
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
*
*/
protected $hidden = [
'password',
'remember_token',
'two_factor_recovery_codes',
'two_factor_secret',
];
/**
* The attributes that should be cast.
*
*
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
/**
* The accessors to append to the model's array form.
*
*
*/
protected $appends = [
'profile_photo_url',
];
}
Jetstream config
Livewire is used for the user management pages, so make sure config/jetstream.php has:
'stack' => 'livewire',
Blade Files
Make sure these Blade files are in resources/views/profile/. Jetstream's installer (php artisan jetstream:install livewire) creates them:
- 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 files in app/Actions/Fortify/ reference the Textstem user:
use Medialight\Textstem\Models\User;