zacksmash / fortify-ui Goto Github PK
View Code? Open in Web Editor NEWLaravel Fortify driven replacement to the Laravel UI package
Home Page: https://github.com/zacksmash/fortify-ui
License: MIT License
Laravel Fortify driven replacement to the Laravel UI package
Home Page: https://github.com/zacksmash/fortify-ui
License: MIT License
When I click the "Enable Two-Factor" button I get the following error:
Target [Laravel\Fortify\Contracts\ConfirmPasswordViewResponse] is not instantiable.
The url it takes me to is:
/user/confirm-password
but I don't a user folder with a confirm-password blade. There is a confirm-password blade file in the auth folder. Is it supposed to route to that one?
--
EDIT: I realized uncommenting the following lines in the FortifyUIServiceProvider fixes the error:
Fortify::confirmPasswordView(function () {
return view('auth.confirm-password');
});
Fortify::twoFactorChallengeView(function () {
return view('auth.two-factor-challenge');
});
However I get the following error:
Call to undefined method App\Models\User::twoFactorQrCodeSvg()
Looks like it's the part that would display an image for Google Authenticator but it seems this class doesn't exist. Could use a little help.
Hi,
before anything, sorry for my bad English.
First, thank you for what you created for us, then, I really would be thankful if you explain me whole story about these 3 packages you made.
I'm new at Laravel, I started learning last month and at the first of my work, Laravel 8 came and change everything by jetstream and I'm really so confused about it, so I decide use fortify directly without Jetstream for start digging in and made a test project for learning purpose.
And after some search I guessed fortify-ui maybe is best choice for me, but, honestly I don't get what are differences between fortify-uikit & fortify-ui-preset. I'm bad in back-end and I'm worse in front-end! (but I don't give up for learning them better.)
Can you explain the relationships between fortify-ui, fortify-uikit & fortify-ui-preset and help understand whole story from above please?
I need made a simple ui for fortify with Tailwind and without any js.
I read the docs, i understood the fortify-ui is the base and we use other two packages for building front-end, but I need some guide and a road map to understand to from where I should begin for make a ui for it.
I know, this is a weird issue that I made :) but I'm kind of amateur in these stuff and I really would be happy if you tell me whole story and help me figure out where I should start for a make a simple ui for fortify with Tailwind and NO js.
And please consider me as a so new Laravel guy and explain me this in a simple word.
Thank you a lot.
It currently redirects to the dashboard whenever you login. Where do I have edit to redirect back to the original destination after login?
Don't get me wrong, I appreciate any effort to give alternatives to jetstream - but what is exactly the difference that this package offers over just doing what the fortify readme tells you to? (besides basic blade views?) - creating some views, registering them via Fortify:: facades, ..?
Is this basically just to automate said process and if you do go through the fortify steps yourself, you get the same exact outcome? I feel many have this question trying to migrate over, so please don't see this as an attack on your efforts and work to offer alternatives, just trying to understand if one needs this if they can just do the same as the fortify readme tells.
Of course automation and even creating your own bundle via https://github.com/zacksmash/fortify-ui-preset is extremely neat to have, just trying to distinguish what exactly this does or offers over just doing it "manually", e.g. having to add 2auth functions yourself or alikes? does this implement the things (2fa, ..) that fortify mentions you'll have to do "yourself"?
Again, thanks! ๐
Hi @zacksmash
I don't know if you're planning on maintaining a list of presets created by the community but I've created a preset based on the Tabler framework. It would be really nice if you could include a link to my work.
The preset is can be found here.
By the way, thanks for your work! It really makes starting Laravel Fortify applications way quicker and easier.
Is it true that after running php artisan fortify:ui
the package can be safely removed again?
Wouldn't it be better/safer to run composer require --dev zacksmash/fortify-ui
instead?
Hi, unfortunately Fortify UI is giving me some issues. app/Actions/Fortify/UpdateUserPassword and UpdateUserProfileInformation files call validateWithBag, but for some reason intelephense (VS Code) is marking it as undefined. (see screenshot).
Not really sure why this is happening, as it doesn't seem like this is a common issue. It definitely isn't due to my other code in the project, because even when I created a fresh new Laravel project and installed Fortify UI, it was still giving me the error.
Maybe it's an issue with VS Code? On a related note, in my view files for updating user passwords, error messages {{ $errors }} aren't returned even with invalid inputs. Am I retrieving the errors correctly?
Could you Add a browser sessions feature, like the one in jetstream?
Hi there.
Just trying fortify-ui on a clean Laravel installation. Got the following message when to enable 2FA:
BadMethodCallException
Call to undefined method App\Models\User::twoFactorQrCodeSvg() (View: D:\laragon\www\saas\resources\views\profile\two-factor-authentication-form.blade.php)
http://saas.test/dashboard
Edit 2: For the 2FA i had to set "use HasFactory, Notifiable, TwoFactorAuthenticatable;" in my user modal.
Edit: To enable the verifyemail I also had to "class User extends Authenticatable implements MustVerifyEmail" <<
Can be closed.
HRR
Is this usable with multiple auth guards?
Hi.
Why is 7.4 written in the dependencies, although it requires 7.3 in Fortify?
Hi there,
First of all massive thanks for the module. It has helped me a lot.
But after I tried to install it again in a (fresh) Laravel installation I got the following error message in my console:
File does not exist at path /***/app/providers/RouteServiceProvider.php.
I installed a fresh Laravel application by running composer create-project laravel/laravel example-app
, then running composer require zacksmash/fortify-ui
and php artisan fortify-ui:install
.
This is the complete error:
***@***:~/***$ php artisan fortify-ui:install --verbose
Illuminate\Contracts\Filesystem\FileNotFoundException
File does not exist at path /***/app/providers/RouteServiceProvider.php.
at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:57
53โ if ($this->isFile($path)) {
54โ return $lock ? $this->sharedGet($path) : file_get_contents($path);
55โ }
56โ
โ 57โ throw new FileNotFoundException("File does not exist at path {$path}.");
58โ }
59โ
60โ /**
61โ * Get contents of a file with shared access.
1 vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261
Illuminate\Filesystem\Filesystem::get()
2 vendor/zacksmash/fortify-ui/src/Commands/FortifyUICommand.php:92
Illuminate\Support\Facades\Facade::__callStatic()
3 vendor/zacksmash/fortify-ui/src/Commands/FortifyUICommand.php:19
Zacksmash\FortifyUI\Commands\FortifyUICommand::updateRoutes()
4 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
Zacksmash\FortifyUI\Commands\FortifyUICommand::handle()
5 vendor/laravel/framework/src/Illuminate/Container/Util.php:40
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
6 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93
Illuminate\Container\Util::unwrapIfClosure()
7 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37
Illuminate\Container\BoundMethod::callBoundMethod()
8 vendor/laravel/framework/src/Illuminate/Container/Container.php:610
Illuminate\Container\BoundMethod::call()
9 vendor/laravel/framework/src/Illuminate/Console/Command.php:136
Illuminate\Container\Container::call()
10 vendor/symfony/console/Command/Command.php:255
Illuminate\Console\Command::execute()
11 vendor/laravel/framework/src/Illuminate/Console/Command.php:121
Symfony\Component\Console\Command\Command::run()
12 vendor/symfony/console/Application.php:971
Illuminate\Console\Command::run()
13 vendor/symfony/console/Application.php:290
Symfony\Component\Console\Application::doRunCommand()
14 vendor/symfony/console/Application.php:166
Symfony\Component\Console\Application::doRun()
15 vendor/laravel/framework/src/Illuminate/Console/Application.php:93
Symfony\Component\Console\Application::run()
16 vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:129
Illuminate\Console\Application::run()
17 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Do you have any idea of what I might be doing wrong? Would love to hear from you!
This was exactly what I was looking for and I just want to say thank you for making this available for everyone.
I do have one question though. Does this work with Laravel 9?
Hi, I've created new preset using Soft UI Dashboard (free) theme from Creative Tim. Here's the repo: https://github.com/akukoder/fortify-soft-ui
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.