Category : jetstream

In jetstream profile managing scaffolding in @if statements $this->enabled is used. And I can’t understand to what particular object does it refers? The file I am looking at "resourcesviewsprofiletwo-factor-authentication-form.blade.php": @if ($this->enabled) {{ __(‘You have enabled two factor authentication.’) }} @else {{ __(‘You have not enabled two factor authentication.’) }} @endif Stackoverflow system does not allow ..

Read more

I am trying to do a fresh install of Laravel 8 with Livewire basic authentication. Basic Laravel installs fine but when installing Jetstream and running "npm install && npm run dev", I get the error. I found this link where it indicates that there is a problem with laravel mix: https://laravel-mix.com/docs/5.0/installation where says: You won’t ..

Read more

I’am just doing my very first steps with Laravel 8 and found a problem that I can not solve. /var/www/html/laravel/resources/views/dashboard.blade.php: <div class="py-12"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> <div class="bg-white overflow-hidden shadow-xl sm:rounded-lg"> <x-jet-welcome /> </div> If i create a new blade in the same directory (f.e. the form.blade.php) with the same code as above but ..

Read more

I have installed laravel jetstream(livewire) and was trying to migrate. but it’s showing the following message : F:laraveltestauth>php artisan migrate Migrating: 2014_10_12_000000_create_users_table IlluminateDatabaseQueryException SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `val` add unique `val_email_unique`(`email`)) and in server http://127.0.0.1:8000 IlluminateDatabaseQueryException SQLSTATE[42S02]: Base ..

Read more

i have a version of laravel 8x jetstream with fortify on a test server and a production server. test: prj_l8xtest.com production: prj_l8xprod.com I wanted to activate or deactivate some pages made available by fortify, they can be activated or deactivated from here -> prj_l8xlocal/config/fortify.php: . . . . ‘features’ => [ Features::registration(), Features::resetPasswords(), Features::emailVerification(), Features::updateProfileInformation(), ..

Read more

I currently have a project which is based in PHP and only uses Laravel Jetstream to add authentication to a specific route. The Laravel Application lives at: domain.com/auth The files that need to have an Auth layer are at: domain.com/members I need to embed a php code snippet in the files in ‘domain.com/members’ such that ..

Read more

There is an example for axios in the documentation. But that’s not what I want. I need to get XSRF-TOKEN exactly from the php code. My code: namespace AppHttpControllers; use IlluminateHttpRequest; use IlluminateSupportFacadesAuth; use GuzzleHttpClient; require ‘../vendor/autoload.php’; class LoginController extends Controller { public function index(){ $client = new Client([ ‘base_uri’ => ‘http://myshop.localhost’, ‘cookies’ => true ..

Read more

I have a singleton setup in my AppServiceProvider.php, such as this: public function boot() { $this->app->singleton(Breadcrumbs::class, function($app){ return new Breadcrumbs(); }); View::composer([‘partials.*’], function($view){ $view->with(‘breadcrumbs’, new Breadcrumbs()); }); } Breadcrumbs is just a simple class that manages an array of breadcrumbs and I want there only to be 1 object across the whole app (so every ..

Read more