jiannius / atom-livewire
Boilerplate for Larave-Livewire
Installs: 2 406
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Blade
Requires
- backpack/basset: ^1
- barryvdh/laravel-debugbar: ^3
- barryvdh/laravel-dompdf: ^2.0
- calebporzio/sushi: ^2
- consoletvs/profanity: ^3.3
- doctrine/dbal: ^3.6
- intervention/image: ^3
- jenssegers/agent: ^2.0
- laravel/pail: ^1.0
- laravel/reverb: ^1
- laravel/sanctum: ^3.2
- laravel/socialite: ^5.0
- league/flysystem-aws-s3-v3: ^3.0
- livewire/livewire: ^2.0
- phpoffice/phpword: ^1.1
- rap2hpoutre/fast-excel: ^5.0
- sentry/sentry-laravel: ^3
- stripe/stripe-php: ^10.0
- symfony/http-client: ^6.0
- symfony/mailgun-mailer: ^6.0
- torann/geoip: ^3.0
Requires (Dev)
- orchestra/testbench: ^8.0
- dev-main
- 0.51.1
- 0.51.0
- 0.50.397
- 0.50.396
- 0.50.395
- 0.50.394
- 0.50.393
- 0.50.392
- 0.50.391
- 0.50.390
- 0.50.389
- 0.50.388
- 0.50.387
- 0.50.386
- 0.50.385
- 0.50.384
- 0.50.383
- 0.50.382
- 0.50.381
- 0.50.380
- 0.50.379
- 0.50.378
- 0.50.377
- 0.50.376
- 0.50.375
- 0.50.374
- 0.50.373
- 0.50.372
- 0.50.371
- 0.50.370
- 0.50.369
- 0.50.368
- 0.50.367
- 0.50.366
- 0.50.365
- 0.50.364
- 0.50.363
- 0.50.362
- 0.50.361
- 0.50.360
- 0.50.359
- 0.50.358
- 0.50.357
- 0.50.356
- 0.50.355
- 0.50.354
- 0.50.353
- 0.50.352
- 0.50.351
- 0.50.350
- 0.50.349
- 0.50.348
- 0.50.347
- 0.50.346
- 0.50.345
- 0.50.344
- 0.50.343
- 0.50.342
- 0.50.341
- 0.50.340
- 0.50.339
- 0.50.338
- 0.50.337
- 0.50.336
- 0.50.335
- 0.50.334
- 0.50.333
- 0.50.332
- 0.50.331
- 0.50.330
- 0.50.329
- 0.50.328
- 0.50.327
- 0.50.326
- 0.50.325
- 0.50.324
- 0.50.323
- 0.50.322
- 0.50.321
- 0.50.320
- 0.50.319
- 0.50.318
- 0.50.317
- 0.50.316
- 0.50.315
- 0.50.314
- 0.50.313
- 0.50.312
- 0.50.311
- 0.50.310
- 0.50.309
- 0.50.308
- 0.50.307
- 0.50.306
- 0.50.305
- 0.50.304
- 0.50.303
- 0.50.302
- 0.50.301
- 0.50.300
- 0.50.299
- 0.50.298
- 0.50.297
- 0.50.296
- 0.50.295
- 0.50.294
- 0.50.293
- 0.50.292
- 0.50.291
- 0.50.290
- 0.50.289
- 0.50.288
- 0.50.287
- 0.50.286
- 0.50.285
- 0.50.284
- 0.50.283
- 0.50.282
- 0.50.281
- 0.50.280
- 0.50.279
- 0.50.278
- 0.50.277
- 0.50.276
- 0.50.275
- 0.50.274
- 0.50.273
- 0.50.272
- 0.50.271
- 0.50.270
- 0.50.269
- 0.50.268
- 0.50.267
- 0.50.266
- 0.50.265
- 0.50.264
- 0.50.263
- 0.50.262
- 0.50.261
- 0.50.260
- 0.50.259
- 0.50.258
- 0.50.257
- 0.50.256
- 0.50.255
- 0.50.254
- 0.50.253
- 0.50.252
- 0.50.251
- 0.50.250
- 0.50.249
- 0.50.248
- 0.50.247
- 0.50.246
- 0.50.245
- 0.50.244
- 0.50.243
- 0.50.242
- 0.50.241
- 0.50.240
- 0.50.239
- 0.50.238
- 0.50.237
- 0.50.236
- 0.50.235
- 0.50.234
- 0.50.233
- 0.50.232
- 0.50.231
- 0.50.230
- 0.50.229
- 0.50.228
- 0.50.227
- 0.50.226
- 0.50.225
- 0.50.224
- 0.50.223
- 0.50.222
- 0.50.221
- 0.50.220
- 0.50.219
- 0.50.218
- 0.50.217
- 0.50.216
- 0.50.215
- 0.50.214
- 0.50.213
- 0.50.212
- 0.50.211
- 0.50.210
- 0.50.209
- 0.50.208
- 0.50.207
- 0.50.206
- 0.50.205
- 0.50.204
- 0.50.203
- 0.50.202
- 0.50.201
- 0.50.200
- 0.50.199
- 0.50.198
- 0.50.197
- 0.50.196
- 0.50.195
- 0.50.194
- 0.50.193
- 0.50.192
- 0.50.191
- 0.50.190
- 0.50.189
- 0.50.188
- 0.50.187
- 0.50.186
- 0.50.185
- 0.50.184
- 0.50.183
- 0.50.182
- 0.50.181
- 0.50.180
- 0.50.179
- 0.50.178
- 0.50.177
- 0.50.176
- 0.50.175
- 0.50.174
- 0.50.173
- 0.50.172
- 0.50.171
- 0.50.170
- 0.50.169
- 0.50.168
- 0.50.167
- 0.50.166
- 0.50.165
- 0.50.164
- 0.50.163
- 0.50.162
- 0.50.161
- 0.50.160
- 0.50.159
- 0.50.158
- 0.50.157
- 0.50.156
- 0.50.155
- 0.50.154
- 0.50.153
- 0.50.152
- 0.50.151
- 0.50.150
- 0.50.149
- 0.50.148
- 0.50.147
- 0.50.146
- 0.50.145
- 0.50.144
- 0.50.143
- 0.50.142
- 0.50.141
- 0.50.140
- 0.50.139
- 0.50.138
- 0.50.137
- 0.50.136
- 0.50.135
- 0.50.134
- 0.50.133
- 0.50.132
- 0.50.131
- 0.50.130
- 0.50.129
- 0.50.128
- 0.50.127
- 0.50.126
- 0.50.125
- 0.50.124
- 0.50.123
- 0.50.122
- 0.50.121
- 0.50.120
- 0.50.119
- 0.50.118
- 0.50.117
- 0.50.116
- 0.50.115
- 0.50.114
- 0.50.113
- 0.50.112
- 0.50.111
- 0.50.110
- 0.50.109
- 0.50.108
- 0.50.107
- 0.50.106
- 0.50.105
- 0.50.104
- 0.50.103
- 0.50.102
- 0.50.101
- 0.50.100
- 0.50.99
- 0.50.98
- 0.50.97
- 0.50.96
- 0.50.95
- 0.50.94
- 0.50.93
- 0.50.92
- 0.50.91
- 0.50.90
- 0.50.89
- 0.50.88
- 0.50.87
- 0.50.86
- 0.50.85
- 0.50.84
- 0.50.83
- 0.50.82
- 0.50.81
- 0.50.80
- 0.50.79
- 0.50.78
- 0.50.77
- 0.50.76
- 0.50.75
- 0.50.74
- 0.50.73
- 0.50.72
- 0.50.71
- 0.50.70
- 0.50.69
- 0.50.68
- 0.50.67
- 0.50.66
- 0.50.65
- 0.50.64
- 0.50.63
- 0.50.62
- 0.50.61
- 0.50.60
- 0.50.59
- 0.50.58
- 0.50.57
- 0.50.56
- 0.50.55
- 0.50.54
- 0.50.53
- 0.50.52
- 0.50.51
- 0.50.50
- 0.50.49
- 0.50.48
- 0.50.47
- 0.50.46
- 0.50.45
- 0.50.44
- 0.50.43
- 0.50.42
- 0.50.41
- 0.50.40
- 0.50.39
- 0.50.38
- 0.50.37
- 0.50.36
- 0.50.35
- 0.50.34
- 0.50.33
- 0.50.32
- 0.50.31
- 0.50.30
- 0.50.29
- 0.50.28
- 0.50.27
- 0.50.26
- 0.50.25
- 0.50.24
- 0.50.23
- 0.50.22
- 0.50.21
- 0.50.20
- 0.50.19
- 0.50.18
- 0.50.17
- 0.50.16
- 0.50.15
- 0.50.14
- 0.50.13
- 0.50.12
- 0.50.11
- 0.50.10
- 0.50.9
- 0.50.8
- 0.50.7
- 0.50.6
- 0.50.5
- 0.50.4
- 0.50.3
- 0.50.2
- 0.50.1
- 0.50.0
- 0.40.18
- 0.40.17
- 0.40.16
- 0.40.15
- 0.40.14
- 0.40.13
- 0.40.12
- 0.40.11
- 0.40.10
- 0.40.9
- 0.40.8
- 0.40.7
- 0.40.6
- 0.40.5
- 0.40.4
- 0.40.3
- 0.40.2
- 0.40.1
- 0.40.0
- 0.39.6
- 0.39.5
- 0.39.4
- 0.39.3
- 0.39.2
- 0.39.1
- 0.39.0
- 0.38.19
- 0.38.18
- 0.38.17
- 0.38.16
- 0.38.15
- 0.38.14
- 0.38.13
- 0.38.12
- 0.38.11
- 0.38.10
- 0.38.9
- 0.38.8
- 0.38.7
- 0.38.6
- 0.38.5
- 0.38.4
- 0.38.3
- 0.38.2
- 0.38.1
- 0.38.0
- 0.37.97
- 0.37.96
- 0.37.95
- 0.37.94
- 0.37.93
- 0.37.92
- 0.37.91
- 0.37.90
- 0.37.89
- 0.37.88
- 0.37.87
- 0.37.86
- 0.37.85
- 0.37.84
- 0.37.83
- 0.37.82
- 0.37.81
- 0.37.80
- 0.37.79
- 0.37.78
- 0.37.77
- 0.37.76
- 0.37.75
- 0.37.74
- 0.37.73
- 0.37.72
- 0.37.71
- 0.37.70
- 0.37.69
- 0.37.68
- 0.37.67
- 0.37.66
- 0.37.65
- 0.37.64
- 0.37.63
- 0.37.62
- 0.37.61
- 0.37.60
- 0.37.59
- 0.37.58
- 0.37.57
- 0.37.56
- 0.37.55
- 0.37.54
- 0.37.53
- 0.37.52
- 0.37.51
- 0.37.50
- 0.37.49
- 0.37.48
- 0.37.47
- 0.37.46
- 0.37.45
- 0.37.44
- 0.37.43
- 0.37.42
- 0.37.41
- 0.37.40
- 0.37.39
- 0.37.38
- 0.37.37
- 0.37.36
- 0.37.35
- 0.37.34
- 0.37.33
- 0.37.32
- 0.37.31
- 0.37.30
- 0.37.29
- 0.37.28
- 0.37.27
- 0.37.26
- 0.37.25
- 0.37.24
- 0.37.23
- 0.37.22
- 0.37.21
- 0.37.20
- 0.37.19
- 0.37.18
- 0.37.17
- 0.37.16
- 0.37.15
- 0.37.14
- 0.37.13
- 0.37.12
- 0.37.11
- 0.37.10
- 0.37.9
- 0.37.8
- 0.37.7
- 0.37.6
- 0.37.5
- 0.37.4
- 0.37.3
- 0.37.2
- 0.37.1
- 0.37.0
- 0.36.7
- 0.36.6
- 0.36.5
- 0.36.4
- 0.36.3
- 0.36.2
- 0.36.1
- 0.36.0
- 0.35.12
- 0.35.11
- 0.35.10
- 0.35.9
- 0.35.8
- 0.35.7
- 0.35.6
- 0.35.5
- 0.35.4
- 0.35.3
- 0.35.2
- 0.35.1
- 0.35.0
- 0.34.16
- 0.34.15
- 0.34.14
- 0.34.13
- 0.34.12
- 0.34.11
- 0.34.10
- 0.34.9
- 0.34.8
- 0.34.7
- 0.34.6
- 0.34.5
- 0.34.4
- 0.34.3
- 0.34.2
- 0.34.1
- 0.34.0
- 0.33.0
- 0.32.2
- 0.32.1
- 0.32.0
- 0.31.32
- 0.31.31
- 0.31.30
- 0.31.29
- 0.31.28
- 0.31.27
- 0.31.26
- 0.31.25
- 0.31.24
- 0.31.23
- 0.31.22
- 0.31.21
- 0.31.20
- 0.31.19
- 0.31.18
- 0.31.17
- 0.31.16
- 0.31.15
- 0.31.14
- 0.31.13
- 0.31.12
- 0.31.11
- 0.31.10
- 0.31.9
- 0.31.8
- 0.31.7
- 0.31.6
- 0.31.5
- 0.31.4
- 0.31.3
- 0.31.2
- 0.31.1
- 0.31.0
- 0.30.22
- 0.30.21
- 0.30.20
- 0.30.19
- 0.30.18
- 0.30.17
- 0.30.16
- 0.30.15
- 0.30.14
- 0.30.13
- 0.30.12
- 0.30.11
- 0.30.10
- 0.30.9
- 0.30.8
- 0.30.7
- 0.30.6
- 0.30.5
- 0.30.4
- 0.30.3
- 0.30.2
- 0.30.1
- 0.30.0
- 0.29.4
- 0.29.3
- 0.29.2
- 0.29.1
- 0.29.0
- 0.28.11
- 0.28.10
- 0.28.9
- 0.28.8
- 0.28.7
- 0.28.6
- 0.28.5
- 0.28.4
- 0.28.3
- 0.28.2
- 0.28.1
- 0.28.0
- 0.27.8
- 0.27.7
- 0.27.6
- 0.27.5
- 0.27.4
- 0.27.3
- 0.27.2
- 0.27.1
- 0.27.0
- 0.26.8
- 0.26.7
- 0.26.6
- 0.26.5
- 0.26.4
- 0.26.3
- 0.26.2
- 0.26.1
- 0.26.0
- 0.25.30
- 0.25.29
- 0.25.28
- 0.25.27
- 0.25.26
- 0.25.25
- 0.25.24
- 0.25.23
- 0.25.22
- 0.25.21
- 0.25.20
- 0.25.19
- 0.25.18
- 0.25.17
- 0.25.16
- 0.25.15
- 0.25.14
- 0.25.13
- 0.25.12
- 0.25.11
- 0.25.10
- 0.25.9
- 0.25.8
- 0.25.7
- 0.25.6
- 0.25.5
- 0.25.4
- 0.25.3
- 0.25.2
- 0.25.1
- 0.25.0
- 0.24.6
- 0.24.5
- 0.24.4
- 0.24.3
- 0.24.2
- 0.24.1
- 0.24.0
- 0.23.7
- 0.23.6
- 0.23.5
- 0.23.4
- 0.23.3
- 0.23.2
- 0.23.1
- 0.23.0
- 0.22.9
- 0.22.8
- 0.22.7
- 0.22.6
- 0.22.5
- 0.22.4
- 0.22.3
- 0.22.2
- 0.22.1
- 0.22.0
- 0.21.0
- 0.20.6
- 0.20.5
- 0.20.4
- 0.20.3
- 0.20.2
- 0.20.1
- 0.20.0
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.8
- 0.18.7
- 0.18.6
- 0.18.5
- 0.18.4
- 0.18.3
- 0.18.2
- 0.18.1
- 0.18.0
- 0.17.10
- 0.17.9
- 0.17.8
- 0.17.7
- 0.17.6
- 0.17.5
- 0.17.4
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.5
- 0.16.4
- 0.16.3
- 0.16.2
- 0.16.1
- 0.16.0
- 0.15.0
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.1
- 0.13.0
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.17
- 0.11.16
- 0.11.15
- 0.11.14
- 0.11.13
- 0.11.12
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.10
- 0.8.9
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.13
- 0.7.12
- 0.7.11
- 0.7.10
- 0.7.9
- 0.7.8
- 0.7.7
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.18
- 0.4.17
- 0.4.16
- 0.4.15
- 0.4.14
- 0.4.13
- 0.4.12
- 0.4.11
- 0.4.10
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-11-20 15:32:00 UTC
README
Static Site Installation
- Install Laravel
composer create-project laravel/laravel <project-name>
cd <project-name>
npm install
// You don't need this if using Laravel Forge or Laravel Valet
sudo chown www-data:www-data storage -R
sudo chmod 777 storage -R
sudo chmod 777 bootstrap -R
- Install Atom
composer require jiannius/atom-livewire
php artisan atom:install --static --force
npm install
- Enable static site in config/atom.php
'static_site' => true,
- Add middleware to app\Http\Kernel.php
protected $middleware = [
...
\Jiannius\Atom\Http\Middleware\Bootstrap::class, // for site security like https redirect etc
];
- Start development
npm run dev
Application Installation
-
Create Database
First you must create a database for your project in MySQL
-
Install Laravel
composer create-project laravel/laravel <project-name>
cd <project-name>
npm install
// You don't need this if using Laravel Forge or Laravel Valet
sudo chown www-data:www-data storage -R
sudo chmod 777 storage -R
sudo chmod 777 bootstrap -R
- Update .env with database name
DB_DATABASE=<project-name>
DB_USERNAME=root
DB_PASSWORD=password
- Install Atom
composer require jiannius/atom-livewire
- Initialize Atom
php artisan atom:init
- Run migration
php artisan queue:table // publish queue table from laravel
php artisan migrate
php artisan atom:migrate base // migrate atom base tables
- Publish routes. This will copy the base routes from atom to routes/web.php
php artisan atom:publish base
- Run npm install
npm install
- Add middleware to app\Http\Kernel.php
protected $middleware = [
...
\Jiannius\Atom\Http\Middleware\Bootstrap::class,
];
- Configure Sentry for error monitoriing (Optional)
php artisan sentry:publish --dsn=<sentry dsn - get from sentry when create project>
// if develop locally, remember to set sentry dsn to null in .env file
// this is to avoid sending error to sentry server in local environment
SENTRY_LARAVEL_DSN=null
SENTRY_TRACES_SAMPLE_RATE=0
- Start development
npm run dev
Install Atom Modules
- Run the migration for the specific module
php artisan atom:migrate // select the module from the list
php artisan atom:migrate app.label // optionally, if you know the module name
- (Optional) Publish the codes to local for further modification
php artisan atom:publish app.label
Modify Livewire\App\Settings
- To modify the app settings, extend
Jiannius\Atom\Http\Livewire\App\Settings\Index.php
, and then change thegetTabsProperty()
method.
// app/Http/Livewire/App/Settings/Index.php
<?php
namespace App\Http\Livewire\App\Settings;
class Index extends \Jiannius\Atom\Http\Livewire\App\Settings\Index
{
public function getTabsProperty(): array
{
return [
['group' => 'Account', 'tabs' => [
['slug' => 'login', 'label' => 'Login Information', 'icon' => 'login',],
['slug' => 'password', 'label' => 'Change Password', 'icon' => 'lock',],
['slug' => 'billing', 'label' => 'Subscription', 'icon' => 'credit-card'],
]],
['group' => 'System', 'tabs' => [
['slug' => 'user', 'label' => 'Users', 'icon' => 'users'],
['slug' => 'invitation','label' => 'Invitations', 'icon' => 'invitation'],
['slug' => 'role', 'label' => 'Roles', 'icon' => 'user-tag'],
['slug' => 'team', 'label' => 'Teams', 'icon' => 'people-group'],
['slug' => 'page', 'label' => 'Pages', 'icon' => 'newspaper'],
['slug' => 'file', 'label' => 'Files and Media', 'icon' => 'images'],
]],
['group' => 'Labels', 'tabs' => [
['slug' => 'label/blog-category', 'label' => 'Blog Categories', 'icon' => 'tag'],
]],
['group' => 'Website', 'tabs' => [
['slug' => 'website/profile', 'label' => 'Profile', 'icon' => 'globe'],
['slug' => 'website/seo', 'label' => 'SEO', 'icon' => 'search'],
['slug' => 'website/analytics', 'label' => 'Analytics', 'icon' => 'chart-simple'],
['slug' => 'website/social-media', 'label' => 'Social Media', 'icon' => 'share-nodes'],
['slug' => 'website/announcement', 'label' => 'Announcement', 'icon' => 'bullhorn'],
['slug' => 'website/popup', 'label' => 'Pop-Up', 'icon' => 'window-restore'],
]],
['group' => 'Integration', 'tabs' => [
['slug' => 'integration/email', 'label' => 'Email', 'icon' => 'paper-plane'],
['slug' => 'integration/storage', 'label' => 'Storage', 'icon' => 'hard-drive'],
['slug' => 'integration/payment', 'label' => 'Payment', 'icon' => 'money-bill'],
['slug' => 'integration/social-login', 'label' => 'Social Login', 'icon' => 'login'],
]]
];
}
}
- Alternatively, you can publish the whole app/settings to local.
php artisan atom:publish app.settings
Payment Gateway
- To enable payment gateway, add the provider in config/atom.php
// config/atom.php
...
'payment_gateway' => ['ozopay'];
- Exclude the redirect and webhook route from CSRF checking.
// app/Http/Middleware/VerifyCsrfToken.php
protected $exclude = [
'__ozopay/*',
'__gkash/*',
'__stripe/*',
];
- Configure config/session.php same site settings to null. This is to allow POST from another provider.
// config/session.php
...
'same_site' => null,
- Use the payment gateway component to show the payment method selection box.
<x-payment-gateway
callback="createPayment"
:providers="['ozopay']"
:endpoints="[
'ozopay' => 'https://uatpayment.ozopay.com/PaymentEntry/PaymentOption',
]"
:value="[
'email' => $contribution->socso_account->email,
'phone' => $contribution->socso_account->phone,
'address' => implode(', ', [$contribution->socso_account->address_1, $contribution->socso_account->address_2]),
'city' => $contribution->socso_account->city,
'postcode' => $contribution->socso_account->postcode,
'state' => metadata()->socso('state', $contribution->socso_account->state),
'country' => 'MY',
'currency' => 'MYR',
'amount' => $this->total,
]"
/>
- Create a fulfillment job in app/Jobs for each provider. Below are the class name for each providers:
- Ozopay: app/Jobs/OzopayFulfillment.php
// app/Jobs/OzopayFulfillment.php
...
protected $params; // will contains the response from provider
public function __construct($params)
{
$this->params = $params;
}
public function handle()
{
// handle fulfillment
}