You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+91-20Lines changed: 91 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,43 +33,114 @@ Installation is simple. Just like your ordinary Laravel app.
33
33
34
34
## ⚡️ How it works
35
35
36
+
### ➡️ Theming
37
+
38
+
The project supports theming, you can set a global color for the application theme, it can be done in `tailwind.config.js`.
39
+
40
+
```js
41
+
module.exports= {
42
+
// ...
43
+
theme: {
44
+
extend: {
45
+
colors: {
46
+
theme:colors.teal,
47
+
danger:colors.red
48
+
}
49
+
}
50
+
},
51
+
//...
52
+
};
53
+
```
54
+
36
55
### ➡️ Authentication
37
56
38
-
The project ships with complete authentication boilerplate and includes the following pages:
57
+
The project ships with complete authentication boilerplate including:
39
58
- Login
40
59
- Register
41
60
- Forget Password
42
61
- Reset Password
43
62
44
-
Also, the project comes with complete `users` crud that can be taken as an example for building other modals.
63
+
### ➡️ Authorization
64
+
65
+
The project is configured to use [Bouncer](https://github.com/JosephSilber/bouncer) package for managing authorization across your routes. Authorization is important security subject, so please consult bouncer's package documentation.
66
+
67
+
### ➡️ Localization / i18n
68
+
69
+
The project supports localization / i18n, to translate the front-end use `lang/{code}/frontend.php` file.
70
+
71
+
### ➡️ Users CRUD
72
+
73
+
For your convenience the project comes with complete `users` crud that includes examples of:
74
+
75
+
- List page with filters and pagination
76
+
- Edit/create pages with form for editing user that includes ajax based role search field
45
77
46
78
### ➡️ Structure
47
79
48
80
The front-end code is located in `resources/js`. The code is organized in different directories to make things more readable.
| Form | Form wrapper | title, is-loading | n/a | views/components |
106
+
| Table | A custom table with sorting and pagination support | headers (array), records (array), actions (array of row actions), sorting (object of keys with true/false), pagination: (object of Laravel pagination data) |@page-changed, @action, $sort | views/components |
107
+
| Alert | Alert component that pulls alrts from AlertStore | n/a | n/a | views/components |
108
+
| Badge | Component that displays highlighted text with background | theme (success, info, warning, danger, error) | n/a | views/components |
109
+
| TextInput | Custom text field with type={text,..., textarea} support | name, label, v-model, type (text,...,textarea, etc), show-label, required, disabled, placeholder | default | views/components/input |
| Dropdown | Dropdown field with server side support | name, label, v-model, show-label, required, disabled, placeholder, multiple, server (endpoint), server-per-page (items per page), server-search-min-characters | default | views/components/input |
112
+
| Button | Button/Router link component | label, icon, theme (success, info, warning, danger, error), disabled, to (:to is router url, when specified the button is rendered as router-link) | default | views/components/input |
113
+
| Spinner | Spinner icon used mostly for loading | text, text-new-line (whether to break the text under the spinner) | n/a | views/components/icons |
114
+
| Icon | Icon wrapper, currently uses fork awesome | name (the icon name without the fa- part) | n/a | views/components/icons |
Please make sure you have APP_URL, SANCTUM_STATEFUL_DOMAINS and SESSION_DOMAIN set correctly in [.env](https://github.com/gdarko/laravel-vue-starter/blob/master/.env.example) file as follows:
126
+
127
+
#### Normal domain
62
128
63
-
### ➡️ Examples
129
+
```
130
+
APP_URL=http://mywebsite.com
64
131
65
-
The project ships with two examples as follows:
132
+
SANCTUM_STATEFUL_DOMAINS=mywebsite.com
133
+
SESSION_DOMAIN=mywebsite.com
134
+
```
66
135
67
-
- views/pages/private/dashboard - Shows paginated list of messages with a form for sending a message.
68
-
- views/pages/private/users - Shows paginated list of system users along with crud screens.
136
+
#### Localhost with port
69
137
70
-
You will probably remove the examples once you start developing your app on top of this project.
0 commit comments