-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from InfyOmLabs/master
Laravel Fortify Support
- Loading branch information
Showing
6 changed files
with
117 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
open_collective: infyomlabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
namespace InfyOm\AdminLTEPreset; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use Laravel\Fortify\Fortify; | ||
use Laravel\Ui\UiCommand; | ||
|
||
class FortifyAdminLTEPresetServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
UiCommand::macro('adminlte-fortify', function (UiCommand $command) { | ||
$fortifyAdminLTEPreset = new AdminLTEPreset($command, true); | ||
$fortifyAdminLTEPreset->install(); | ||
|
||
$command->info('AdminLTE scaffolding installed successfully for Laravel Fortify.'); | ||
|
||
if ($command->option('auth')) { | ||
$fortifyAdminLTEPreset->installAuth(); | ||
$command->info('AdminLTE CSS auth scaffolding installed successfully for Laravel Fortify.'); | ||
} | ||
|
||
$command->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.'); | ||
}); | ||
|
||
if (class_exists(Fortify::class)) { | ||
Fortify::loginView(function () { | ||
return view('auth.login'); | ||
}); | ||
|
||
Fortify::registerView(function () { | ||
return view('auth.register'); | ||
}); | ||
|
||
Fortify::confirmPasswordView(function () { | ||
return view('auth.passwords.confirm'); | ||
}); | ||
|
||
Fortify::requestPasswordResetLinkView(function () { | ||
return view('auth.passwords.email'); | ||
}); | ||
|
||
Fortify::resetPasswordView(function () { | ||
return view('auth.passwords.reset'); | ||
}); | ||
|
||
Fortify::verifyEmailView(function () { | ||
return view('auth.verify'); | ||
}); | ||
} | ||
} | ||
} |