Category : jetstream

in Laravel 8 / livewire 2.5 / tailwindcss: 2.2 I want to change color/appearence of modal for with adding custom classes: @if( $newsImageModalFormVisible) <x-jet-dialog-modal wire:model="newsImageModalFormVisible" class="admin_main_color"> <x-slot name="title" > {{ __(‘Image Preview’) }} </x-slot> <x-slot name="content" class="admin_block_border"> and in resources/views/vendor/jetstream/components/dialog-modal.blade.php I rty to define custom classes : @props([‘id’ => null, ‘maxWidth’ => null, ‘class’ => ..

Read more

Is it possible to set a global language prefix to every url: Currently php artisan route:list –compact gives +———-+———————————-+-.. | Method | URI | Action.. +———-+———————————-+-.. | GET|HEAD | api/user | Closur.. | GET|HEAD | forgot-password | LaravelFortifyHtt… | POST | forgot-password | Lara.. | GET|HEAD | livewire/livewire.js | Livewire.. .. | GET|HEAD | login ..

Read more

I’m try to get Auth::user()->id as my form value. It can shows on the label but it return value null. View: <option value="{{ Auth::user()->id }}" data-keterangan="">{{ Auth::user()->id }}</option> Http/Livewire: $this->validate([ ‘customer_code’=>’required|string’, ‘customer_name’=>’required|string’, ‘phone_number’=>’required|string’ ]); StokItem::updateOrCreate([ ‘customer_code’=>$this->customer_code, ‘customer_name’=>$this->customer_name, ‘phone_number’=>$this->phone_number ]); Model: protected $fillable = [‘id’,’customer_code’,’customer_name’,’phone_number’,’produk_code’,’produk_name’,’produk_uom’,’qty’,’kode_kondisi_barang’,’jenis_kondisi_barang’,’remark’,’url_foto’,’status’]; Sourc..

Read more

I added two more tables Business and Bank along with User in jetstream registration form. I inserted data successfully in all these three tables at once at registration process. my app/Actions/Fortify/CreatedNewUser.php file is: <?php namespace AppActionsFortify; use AppModelsTeam; use AppModelsUser; use AppModelsBusiness; use AppModelsBank; use IlluminateSupportFacadesDB; use IlluminateSupportFacadesHash; use IlluminateSupportFacadesValidator; use LaravelFortifyContractsCreatesNewUsers; use LaravelJetstreamJetstream; class ..

Read more

I have a Laravel Jetstream installation and use Tailwind CSS however the default colors do not work when using the tailwind components. I only want to use the default colors and not custom yet. tailwind.config.js const defaultTheme = require(‘tailwindcss/defaultTheme’); module.exports = { mode: ‘jit’, purge: [ ‘./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php’, ‘./vendor/laravel/jetstream/**/*.blade.php’, ‘./storage/framework/views/*.php’, ‘./resources/views/**/*.blade.php’, ], theme: { extend: { ..

Read more

I am running a site with Laravel Jetstream. When I try to add people to my team, it sends out the email fine, with a url like this: http://example.com/team-invitations/4?signature=3e156ce4269578b25e9a47b14c616207c38e6207f634cd8386257848fba18b6b When I click on that link, it takes me to a login page whether I’m logged in with that email or not. And then when I ..

Read more

I am using laravel jetstream with inertia js and vue3. I am trying to create a Layout-Component to create the navigation bar there. The Layout-Component needs to fetch shared data: https://inertiajs.com/shared-data Why does my code not work? My code: <?php namespace AppHttpMiddleware; use IlluminateHttpRequest; use InertiaMiddleware; class HandleInertiaRequests extends Middleware { /** * The root ..

Read more

I installed jetstream and livewire. After installation I got this error IlluminateSupportServiceProvider::loadRoutesFrom(): Failed opening required ‘D:xampphtdocssuowebappvendorlaraveljetstreamsrc/../routes/.php’ (include_path=’D:xamppphpPEAR’) I tried to clear cache using following command php artisan config:cache But it also shows many warnings and then this error SymfonyComponentErrorHandlerErrorFatalError Couldn’t find any working solution. Any idea? Sourc..

Read more

I have a fresh installation of Laravel with Jetstream (Livewire) and I’m getting the following error on the javascript console when I enable and disable 2FA without refreshing the page. Uncaught (in promise) Object { isFromCancelledTransition: true } Uncaught (in promise) Object { isFromCancelledTransition: true } Uncaught (in promise) TypeError: i is not a function ..

Read more