Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit 4c3581b

Browse files
committed
feat: initial commit
0 parents  commit 4c3581b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+236155
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
/vendor/
3+
composer.lock
4+
.DS_Store
5+
**/.DS_Store

README.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Laravel UI AdminLTE
2+
3+
[![Total Downloads](https://poser.pugx.org/infyomlabs/laravel-ui-adminlte/downloads)](https://packagist.org/packages/infyomlabs/laravel-ui-adminlte)
4+
[![Monthly Downloads](https://poser.pugx.org/infyomlabs/laravel-ui-adminlte/d/monthly)](https://packagist.org/packages/infyomlabs/laravel-ui-adminlte)
5+
[![Daily Downloads](https://poser.pugx.org/infyomlabs/laravel-ui-adminlte/d/daily)](https://packagist.org/packages/infyomlabs/laravel-ui-adminlte)
6+
[![License](https://poser.pugx.org/infyomlabs/laravel-ui-adminlte/license)](https://packagist.org/packages/infyomlabs/laravel-ui-adminlte)
7+
8+
[Laravel Frontend Scaffolding](https://laravel.com/docs/7.x/frontend) for [AdminLTE3](https://adminlte.io/themes/v3/) Theme.
9+
10+
## Installation
11+
12+
Run a command,
13+
14+
`composer require infyomlabs/laravel-ui-adminlte`
15+
16+
For Laravel 7,
17+
18+
`composer require infyomlabs/laravel-ui-adminlte:^2.0`
19+
20+
For Laravel 6,
21+
22+
`composer require infyomlabs/laravel-ui-adminlte:^1.0`
23+
24+
## Usage
25+
26+
Run a command,
27+
28+
To Generate a full authentication UI,
29+
30+
`php artisan ui adminlte --auth`
31+
32+
To Install just AdminLTE theme assets,
33+
34+
`php artisan ui adminlte`
35+
36+
And then run,
37+
38+
`npm install && npm run dev`
39+
40+
Or for production,
41+
42+
`npm install && npm run prod`
43+
44+
## Usage with Laravel Fortify (Laravel 8.x only)
45+
46+
This package also provides support for Laravel Fortify for authentication scaffolding.
47+
48+
**NOTE**: Don't forget to install and run Laravel Fortify and perform its required installation steps.
49+
50+
Run a command,
51+
52+
`php artisan ui adminlte-fortify --auth`
53+
54+
And then run,
55+
56+
`npm install && npm run dev`
57+
58+
Or for production,
59+
60+
`npm install && npm run prod`
61+
62+
## Tutorial
63+
Here you can find a video tutorial. (**Credits**: [shailesh-ladumor](https://github.com/shailesh-ladumor))
64+
65+
[<img src="https://img.youtube.com/vi/jA7hr2gE9yc/0.jpg" width="480">](https://youtu.be/jA7hr2gE9yc)
66+
67+
## Screenshots
68+
69+
### Login
70+
71+
![Login](https://raw.github.com/InfyOmLabs/laravel-ui-adminlte/master/screenshots/Login.png)
72+
73+
### Register
74+
75+
![Register](https://raw.github.com/InfyOmLabs/laravel-ui-adminlte/master/screenshots/Register.png)
76+
77+
### Reset Password Form
78+
79+
![Reset Password Form](https://raw.github.com/InfyOmLabs/laravel-ui-adminlte/master/screenshots/Reset-Password-Form.png)
80+
81+
### Reset Password
82+
83+
![Reset Password](https://raw.github.com/InfyOmLabs/laravel-ui-adminlte/master/screenshots/Reset-Password.png)
84+
85+
### Admin Layout
86+
87+
![Reset Password](https://raw.github.com/InfyOmLabs/laravel-ui-adminlte/master/screenshots/Admin-Layout.png)

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "infyomlabs/laravel-ui-stisla",
3+
"description": "Laravel frontend preset for Stisla Theme",
4+
"keywords": [
5+
"laravel",
6+
"preset",
7+
"stisla"
8+
],
9+
"type": "library",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Mitul Golakiya",
14+
"email": "me@mitul.me"
15+
}
16+
],
17+
"require": {
18+
"php": "^7.3",
19+
"illuminate/support": "^8.0",
20+
"infyomlabs/laravel-generator-helpers": "^3.0",
21+
"laravel/ui": "^3.0"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"InfyOm\\StislaPreset\\": "src/"
26+
}
27+
},
28+
"extra": {
29+
"laravel": {
30+
"providers": [
31+
"InfyOm\\StislaPreset\\StislaPresetServiceProvider",
32+
"InfyOm\\StislaPreset\\FortifyStislaPresetServiceProvider"
33+
]
34+
}
35+
}
36+
}

screenshots/Admin-Layout.png

60.4 KB
Loading

screenshots/Edit-Profile.png

50.3 KB
Loading

screenshots/Login.png

45.2 KB
Loading

screenshots/Register.png

55.3 KB
Loading
47.1 KB
Loading

screenshots/Reset-Password.png

47.3 KB
Loading
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
3+
namespace InfyOm\StislaPreset;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
use Laravel\Fortify\Fortify;
7+
use Laravel\Ui\UiCommand;
8+
9+
class FortifyStislaPresetServiceProvider extends ServiceProvider
10+
{
11+
public function boot()
12+
{
13+
UiCommand::macro('stisla-fortify', function (UiCommand $command) {
14+
$fortifyAdminLTEPreset = new StislaPreset($command, true);
15+
$fortifyAdminLTEPreset->install();
16+
17+
$command->info('Stisla scaffolding installed successfully for Laravel Fortify.');
18+
19+
if ($command->option('auth')) {
20+
$fortifyAdminLTEPreset->installAuth();
21+
$command->info('Stisla CSS auth scaffolding installed successfully for Laravel Fortify.');
22+
}
23+
24+
$command->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
25+
});
26+
27+
if (class_exists(Fortify::class)) {
28+
Fortify::loginView(function () {
29+
return view('auth.login');
30+
});
31+
32+
Fortify::registerView(function () {
33+
return view('auth.register');
34+
});
35+
36+
Fortify::confirmPasswordView(function () {
37+
return view('auth.passwords.confirm');
38+
});
39+
40+
Fortify::requestPasswordResetLinkView(function () {
41+
return view('auth.passwords.email');
42+
});
43+
44+
Fortify::resetPasswordView(function () {
45+
return view('auth.passwords.reset');
46+
});
47+
48+
Fortify::verifyEmailView(function () {
49+
return view('auth.verify');
50+
});
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)