Skip to content

Commit bb0d6e8

Browse files
Merge pull request #131 from cretueusebiu/next
Next
2 parents 13e5067 + a386678 commit bb0d6e8

File tree

85 files changed

+9927
-7275
lines changed

Some content is hidden

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

85 files changed

+9927
-7275
lines changed

.editorconfig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
root = true
22

33
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
47
indent_style = space
58
indent_size = 4
6-
end_of_line = lf
7-
charset = utf-8
89
trim_trailing_whitespace = true
9-
insert_final_newline = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
1313

14-
[*.{vue,js,json,html,scss,blade.php}]
15-
indent_style = space
14+
[*.{vue,js,json,html,scss,blade.php,yml}]
1615
indent_size = 2

.env.example

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ APP_NAME="Laravel Nuxt"
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_URL=http://localhost
5+
APP_LOG_LEVEL=debug
6+
APP_URL=http://localhost:8000
67

78
LOG_CHANNEL=stack
9+
LOG_LEVEL=debug
810

911
DB_CONNECTION=mysql
1012
DB_HOST=127.0.0.1
@@ -23,12 +25,14 @@ REDIS_HOST=127.0.0.1
2325
REDIS_PASSWORD=null
2426
REDIS_PORT=6379
2527

26-
MAIL_DRIVER=smtp
28+
MAIL_MAILER=smtp
2729
MAIL_HOST=smtp.mailtrap.io
2830
MAIL_PORT=2525
2931
MAIL_USERNAME=null
3032
MAIL_PASSWORD=null
3133
MAIL_ENCRYPTION=null
34+
MAIL_FROM_ADDRESS=null
35+
MAIL_FROM_NAME="${APP_NAME}"
3236

3337
AWS_ACCESS_KEY_ID=
3438
AWS_SECRET_ACCESS_KEY=
@@ -40,4 +44,8 @@ PUSHER_APP_KEY=
4044
PUSHER_APP_SECRET=
4145
PUSHER_APP_CLUSTER=mt1
4246

47+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
48+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
49+
4350
JWT_TTL=1440
51+
JWT_SECRET=

.eslintrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
parser: '@babel/eslint-parser',
5+
sourceType: 'module',
6+
requireConfigFile: false
7+
},
8+
extends: [
9+
'@nuxtjs'
10+
],
11+
rules: {
12+
'vue/max-attributes-per-line': 'off'
13+
}
14+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
CHANGELOG.md export-ignore
66
README.md export-ignore
77
.travis.yml export-ignore
8+
.env.dusk.local export-ignore
9+
.env.dusk.testing export-ignore

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Get Composer cache directory
17+
id: composer-cache
18+
run: |
19+
echo "::set-output name=dir::$(composer config cache-files-dir)"
20+
21+
- uses: actions/cache@v2
22+
with:
23+
path: ${{ steps.composer-cache.outputs.dir }}
24+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-composer-
27+
28+
- uses: actions/cache@v2
29+
with:
30+
path: ~/.npm
31+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32+
restore-keys: |
33+
${{ runner.os }}-node-
34+
35+
- name: Install composer dependencies
36+
run: composer install -q --no-ansi --no-interaction --no-progress --no-suggest --prefer-dist --optimize-autoloader
37+
38+
- name: Directory permissions
39+
run: chmod -R 777 storage bootstrap/cache
40+
41+
- name: Run tests (Unit and Feature)
42+
run: vendor/bin/phpunit

.styleci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
php:
2+
preset: laravel
3+
disabled:
4+
- no_unused_imports
5+
finder:
6+
not-name:
7+
- index.php
8+
- server.php
9+
js:
10+
finder:
11+
not-name:
12+
- webpack.mix.js
13+
css: true

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.0.0 - 2020-11-28
4+
5+
- Upgrade to Laravel 8
6+
- Update dependencies
7+
- Catch validation errors [#105](https://github.com/cretueusebiu/laravel-nuxt/pull/105)
8+
39
## 2.2.0 - 2020-01-12
410

511
- Upgrade to Nuxt 2.11

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Laravel-Nuxt
22

3-
<a href="https://travis-ci.org/cretueusebiu/laravel-nuxt"><img src="https://travis-ci.org/cretueusebiu/laravel-nuxt.svg?branch=master" alt="Build Status"></a>
3+
<a href="https://github.com/cretueusebiu/laravel-nuxt/actions"><img src="https://github.com/cretueusebiu/laravel-nuxt/workflows/tests/badge.svg" alt="Build Status"></a>
44
<a href="https://packagist.org/packages/cretueusebiu/laravel-nuxt"><img src="https://poser.pugx.org/cretueusebiu/laravel-nuxt/d/total.svg" alt="Total Downloads"></a>
55
<a href="https://packagist.org/packages/cretueusebiu/laravel-nuxt"><img src="https://poser.pugx.org/cretueusebiu/laravel-nuxt/v/stable.svg" alt="Latest Stable Version"></a>
66

@@ -12,8 +12,8 @@
1212

1313
## Features
1414

15-
- Nuxt 2.11
16-
- Laravel 6
15+
- Nuxt 2
16+
- Laravel 8
1717
- SPA or SSR
1818
- Socialite integration
1919
- VueI18n + ESlint + Bootstrap 4 + Font Awesome 5
@@ -22,7 +22,7 @@
2222
## Installation
2323

2424
- `composer create-project --prefer-dist cretueusebiu/laravel-nuxt`
25-
- Edit `.env` to set your database connection details and `APP_URL` (the url to your Laravel application)
25+
- Edit `.env` and set your database connection details
2626
- (When installed via git clone or download, run `php artisan key:generate` and `php artisan jwt:secret`)
2727
- `php artisan migrate`
2828
- `npm install`
@@ -32,22 +32,24 @@
3232
### Development
3333

3434
```bash
35+
# start Laravel
36+
php artisan serve
37+
38+
# start Nuxt
3539
npm run dev
3640
```
3741

38-
You can access your application at `http://localhost:3000`.
42+
Access your application at `http://localhost:3000`.
3943

4044
### Production
4145

4246
```bash
4347
npm run build
4448
```
4549

46-
You can access your application the url you set `APP_URL` to.
47-
4850
### Enable SSR
4951

50-
- Remove `mode: 'spa'` and `'~plugins/nuxt-client-init'` from `client/nuxt.config.js`
52+
- Edit `client/nuxt.config.js` and set `ssr: true`
5153
- Edit `.env` to set `APP_URL=http://api.example.com` and `CLIENT_URL=http://example.com`
5254
- Run `npm run build` and `npm run start`
5355

0 commit comments

Comments
 (0)