Skip to content

Commit 6a7591a

Browse files
committed
wip
1 parent c7269ef commit 6a7591a

File tree

157 files changed

+1058
-4998
lines changed

Some content is hidden

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

157 files changed

+1058
-4998
lines changed

.env.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@ APP_NAME="Laravel.io"
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5+
APP_TIMEZONE=UTC
56
APP_HOST=laravel.io.test
67
APP_URL=http://${APP_HOST}
78

9+
APP_MAINTENANCE_DRIVER=file
10+
APP_MAINTENANCE_STORE=database
11+
12+
CACHE_STORE=file
13+
SESSION_DRIVER=file
14+
15+
AUTH_PASSWORD_RESET_TOKEN_TABLE=password_resets
16+
17+
BCRYPT_ROUNDS=12
18+
819
DB_DATABASE=laravel
920
DB_USERNAME=root
1021
DB_PASSWORD=password
@@ -38,3 +49,7 @@ TELEGRAM_CHANNEL=
3849

3950
FATHOM_SITE_ID=
4051
FATHOM_TOKEN=
52+
LOG_STACK=single
53+
SESSION_ENCRYPT=false
54+
SESSION_PATH=/
55+
SESSION_DOMAIN=null

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ jobs:
66
tests:
77
runs-on: ubuntu-latest
88

9+
services:
10+
mysql:
11+
image: mysql:5.7
12+
env:
13+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
14+
MYSQL_DATABASE: laravel
15+
ports:
16+
- 3306:3306
17+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
18+
919
steps:
1020
- name: Checkout code
1121
uses: actions/checkout@v2
@@ -28,6 +38,10 @@ jobs:
2838

2939
- name: Execute tests
3040
run: vendor/bin/pest
41+
env:
42+
DB_CONNECTION: mysql
43+
DB_COLLATION: utf8mb4_unicode_ci
44+
DB_DATABASE: laravel
3145

3246
- name: Deploy
3347
if: github.repository == 'laravelio/laravel.io' && github.ref_name == 'main'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
/.vscode
1414
.env
1515
.phpunit.result.cache
16+
!database/schema/*.sql

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ The following tools are required in order to start the installation.
4848
4. Run `composer setup` to setup the application
4949
5. Set up a working e-mail driver like [Mailtrap](https://mailtrap.io/)
5050
6. Run `valet link` to link the site to a testing web address
51-
7. Configure the (optional) features from below
51+
7. Create a `testing` database in MySQL so you can run the test suite
52+
8. Configure the (optional) features from below
5253

5354
You can now visit the app in your browser by visiting [http://laravel.io.test](http://laravel.io.test). If you seeded the database you can login into a test account with **`testing`** & **`password`**.
5455

app/Concerns/HasTags.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ public function tags(): Collection
1818
*/
1919
public function syncTags(array $tags)
2020
{
21+
try {
2122
$this->save();
23+
} catch (\Exception $e) {
24+
dd($e);
25+
}
2226
$this->tagsRelation()->sync($tags);
2327

2428
$this->unsetRelation('tagsRelation');

app/Console/Kernel.php

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

app/Exceptions/Handler.php

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

app/Http/Controllers/Articles/ArticlesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\Concerns\UsesFilters;
66
use App\Http\Controllers\Controller;
7-
use App\Http\Middleware\Authenticate;
87
use App\Http\Requests\ArticleRequest;
98
use App\Http\Resources\ArticleResource;
109
use App\Jobs\CreateArticle;
@@ -14,6 +13,7 @@
1413
use App\Models\Tag;
1514
use App\Models\User;
1615
use App\Policies\ArticlePolicy;
16+
use Illuminate\Auth\Middleware\Authenticate;
1717
use Illuminate\Auth\Middleware\EnsureEmailIsVerified;
1818
use Illuminate\Http\Request;
1919
use Illuminate\Support\Facades\Auth;

app/Http/Controllers/Articles/AuthoredArticles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Http\Controllers\Articles;
44

55
use App\Http\Controllers\Controller;
6-
use App\Http\Middleware\Authenticate;
6+
use Illuminate\Auth\Middleware\Authenticate;
77
use Illuminate\Auth\Middleware\EnsureEmailIsVerified;
88
use Illuminate\Http\Request;
99
use Illuminate\View\View;

app/Http/Controllers/Auth/ForgotPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\Http\Controllers\Controller;
6-
use App\Http\Middleware\RedirectIfAuthenticated;
6+
use Illuminate\Auth\Middleware\RedirectIfAuthenticated;
77
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
88

99
class ForgotPasswordController extends Controller

0 commit comments

Comments
 (0)