Category : jetstream

enter image description here page expired 419 appears when in production. I’ve tried to run php artisan clear:cache, php artisan config:cache, php artisan key:generate, and also change the SESSION_DOMAIN with the same domain, but the page still error if I deactivate the CSRF middleware it doesn’t have an error, but I can’t go to the ..

Read more

i want to redirect back with an error message in laravel. im currently using laravel 8 and inertia 0.8.2. here is what i want to do: try { $center->delete(); } catch (IlluminateDatabaseQueryException $e) { if ($e->errorInfo[0] == ‘23000’) return Redirect::back()->with(‘error’, ‘hey you cant do this bla bla…’); } and in inertia: <jet-error-message :message="error"></jet-error-message> i cant ..

Read more

So I just installed Laravel Jetstream and right after reloading my laravel page this is what I get on the screen. This is the exact error I’m getting ERROR I haven’t really touched anything, I just installed Laravel Jetstream and whenever I load into my localhost I see that piece of code right there. The ..

Read more

I am developing an application with Laravel 8 and I ran into a very strange behaviour. I have a Model called "Organisation", this Organisation has many Users (Model from Jetstream). I did the relationship as usual: In Organisation Model: public function users() { return $this->hasMany(User::class); } In User Model: public function organisation() { return $this->belongsTo(Organisation::class); ..

Read more

I’m trying to add element to user profile form, there is no problem in the registration form but I don’t know how to add it in user profile update page <div class="col-span-6 sm:col-span-4"> <x-jet-label for="name" value="{{ __(‘Name’) }}" /> <x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="state.name" autocomplete="name" /> <x-jet-input-error for="name" class="mt-2" /> </div> <!– Email ..

Read more

We’re using the latest version of Laravel with Laravel Jetstream and want to implement a functionality to allow our admins to sign in on behalf of a regular user. This allows us to provide a better support if some users encounter problems with their accounts. This function seems perfect to achieve the intended result: Auth::loginUsingId(1); ..

Read more

I am creating a Single Page Application using Laravel 8, Vue and Sanctum for API. If I use Jetstream for authentication there is compulsory to use another js Inertia. and according to documentation its saying "you will use Laravel’s router instead of Vue router." Can I use Jetstream without the inertia or without laravel router? ..

Read more

I can’t install Jetstream to my Laravel project. When I use the command composer require laravel / jetstream, it will generate the following error: [InvalidArgumentException] The laravel / jetstream package has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version My PHP version is 7.2.24, and my Composer version is 2.0.8. ..

Read more

I am trying to incorporate the instructions in : https://webmobtuts.com/backend-development/lets-implement-a-simple-ticketing-system-with-laravel/ with Laravel Jetstream + livewire. I love the Jetstream interface, and I’m wondering if anyone has any tips or instructions on how to incorporate this very same (or similar) ticketing system in Laravel 8 Jetstream. I thought about keeping the database structure, and using artisan ..

Read more