Category : jetstream

So this question is more conceptual. I am designing an app using Laravel Jetstream that requires two types of Auth. Standard Jetstream/Fortify/Sanctum logins A way to login "guest" users with data about them The concept is a chat application where I need to pass user info from one site to another so they can login, ..

Read more

By default the registration page has name, email, password and confirm password on its form like the following: <div class="container d-flex flex-column justify-content-between vh-100"> <div class="row justify-content-center mt-5"> <div class="col-xl-5 col-lg-6 col-md-10"> <div class="card"> <div class="card-header bg-primary"> <div class="app-brand"> <a href="/index.html"> </a> </div> </div> <div class="card-body p-5"> <h4 class="text-dark mb-5">Register</h4> <form method="POST" action="{{ route(‘register’) }}"> ..

Read more

I am using the default jetstream registration page in laravel 8: @if (count($errors) > 0) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class="container d-flex flex-column justify-content-between vh-100"> <div class="row justify-content-center mt-5"> <div class="col-xl-5 col-lg-6 col-md-10"> <div class="card"> <div class="card-header bg-primary"> <div class="app-brand"> <a href="/index.html"> <svg class="brand-icon" ..

Read more

I am using the default jetstream registration page in laravel 8: @if (count($errors) > 0) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class="container d-flex flex-column justify-content-between vh-100"> <div class="row justify-content-center mt-5"> <div class="col-xl-5 col-lg-6 col-md-10"> <div class="card"> <div class="card-header bg-primary"> <div class="app-brand"> <a href="/index.html"> <svg class="brand-icon" ..

Read more

Laravel Tailwind Issue It should be show Category as usually do but laravel with jetstream doing that for me Anyone know this behavior of tailwind? Only show this issue with laravel with jetstream <select class=”border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-md shadow-sm mt-1 block w-full” type=”text” class=”form-control” wire:model=”category”> <option selected hidden disabled=”disabled”>Category</option></select> Sourc..

Read more

I am doing a project with JetStream I do everything right but when installing npm with npm install I get this error. vagrant @ homestead: ~ / code / LoginJetStream $ npm install npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/vagrant/code/LoginJetStream/node_modules/acorn-node/node_modules/acorn/package.json.3119462421 npm ERR! errno -2 npm ERR! enoent ENOENT: no such ..

Read more

I’m trying to validate some data this way: public function update($user, array $input) { $v = Validator::make($input, [ ‘name’ => [‘required’, ‘string’, ‘max:255′], ’email’ => [‘required’, ’email’, ‘max:255’, Rule::unique(‘users’)->ignore($user->id)], ‘photo’ => [‘nullable’, ‘mimes:jpg,jpeg,png’, ‘max:1024’], ]); //MORE CODE } Then, in place of "//MORE CODE", I tried to do this: $messagesArray = []; foreach ($v->messages()->all() as ..

Read more

I am following a jetstream tutorial and in it says that, in order to add some jetstream features, you should uncomment some lines and it should update automatically. in this part of jetstream.php: /* |————————————————————————– | Features |————————————————————————– | | Some of Jetstream’s features are optional. You may disable the features | by removing them ..

Read more

I am using Laravel 8 with Jetstream. I customised my teams update form to look like this: <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" :disabled="! Gate::check(‘update’, $team)" /> <x-jet-input-error for="name" class="mt-2" /> </div> <!– Company Name –> <div class="col-span-6 sm:col-span-4"> <x-jet-label for="companyName" value="{{ __(‘Company Name’) }}" ..

Read more

After i follow step by step on document to install laravel jetstream then go on step https://jetstream.laravel.com/2.x/installation.html $ npm install && npm run dev after i run it this error show up after i type that, > [email protected] dev /mnt/d/#Ricky_Only/Code/adminPortofolio > npm run development > [email protected] development /mnt/d/#Ricky_Only/Code/adminPortofolio > mix ✖ Mix Compiled with some ..

Read more

I read the official documentation of Laravel Jetstream And Sanctum but I still don’t understan a few things. First of all, I secure the endpoint with Route::get(‘/endpointtoprotect’, [AuthController::class, ‘endpointtoprotect’])->middleware(‘auth:sanctum’); So to use that endpoint I need the token from ‘api/login’. I checked that and It’s working. But when I put on purpose an incorrect token, ..

Read more

I am trying to learn Jetstream. I have a dashboard template that works for most things but when I try to do the following but remove I get undefined variable header. How can I remove the header component? @extends(‘admin.admin_master’) @section(‘admin’) <x-app-layout> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __(‘Profile’) }} </h2> </x-slot> <div> <div ..

Read more

I have a default Laravel project which is scaffold with Bootstrap and Vue.js. Having considered to use Laravel JetStream Livewire, I am going to remove bootstrap because Laravel JetStreal Livewire is using TailwindCSS and we can not use both Bootstrap and TailwindCSS together. "devDependencies": { "@tailwindcss/forms": "^0.3.1", "@tailwindcss/typography": "^0.4.0", "alpinejs": "^2.7.3", "axios": "^0.21", "bootstrap": "^4.6.0", ..

Read more

I just created a new laravel project and added jetstream and tried logging in and got this error. ErrorException Attempt to read property "name" on null (…resourcesviewsnavigation-menu.blade.php. <x-slot name="content"> <div class="w-60"> <!– Team Management –> <div class="block px-4 py-2 text-xs text-gray-400"> {{ __(‘Manage Team’) }} </div> <!– Team Settings –> <x-jet-dropdown-link href="{{ route(‘teams.show’, Auth::user()->currentTeam->id) }}"> ..

Read more

i’m trying to display some data from my database and display it on my register blade(jetstream auth), i tried to modify the create function on RegisteredUserController but it didn’t work i tried to modify the controller as this public function create(Request $request): RegisterViewResponse { $x=5; return app(RegisterViewResponse::class,[‘x’=>$x]); } and i got the following error : ..

Read more