File tree Expand file tree Collapse file tree 9 files changed +18
-31
lines changed Expand file tree Collapse file tree 9 files changed +18
-31
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ jobs:
29
29
strategy :
30
30
fail-fast : false
31
31
matrix :
32
- laravel : [ ^10 .0, ^11.0 ]
33
- php : ['8.2', '8.3' ]
32
+ laravel : [^11 .0, ^12.0 ]
33
+ php : [8.3, 8.4 ]
34
34
include :
35
- - laravel : ^10.0
36
- testbench : ^8.0
37
35
- laravel : ^11.0
38
36
testbench : ^9.0
37
+ - laravel : ^12.0
38
+ testbench : ^10.0
39
39
steps :
40
40
- name : Checkout
41
41
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ coverage.xml
16
16
_ide_helper.php
17
17
_ide_helper_models.php.php
18
18
.phpunit.result.cache
19
- .phpunit.cache
19
+ .phpunit.cache / *
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"require" : {
23
- "php" : " ^ 8.1" ,
24
- "illuminate/support" : " ^10.0|^11 .0"
23
+ "php" : " >= 8.1" ,
24
+ "illuminate/support" : " >=10 .0"
25
25
},
26
26
"require-dev" : {
27
27
"ext-mongodb" : " *" ,
28
- "phpunit/phpunit" : " ^ 10.0" ,
29
- "orchestra/testbench" : " ^8.0|^9 .0" ,
30
- "mockery/mockery" : " ^ 1.5" ,
31
- "nunomaduro/collision" : " ^7.0|^8 .0" ,
32
- "mongodb/laravel-mongodb" : " ^ 4"
28
+ "phpunit/phpunit" : " >= 10.0" ,
29
+ "orchestra/testbench" : " >=8 .0" ,
30
+ "mockery/mockery" : " >= 1.5" ,
31
+ "nunomaduro/collision" : " >=7 .0" ,
32
+ "mongodb/laravel-mongodb" : " >= 4"
33
33
},
34
34
"suggest" : {
35
35
"jenssegers/mongodb" : " Adds support for MongoDB in Laravel/Eloquent"
Original file line number Diff line number Diff line change 1
1
---
2
- version : " 3.0"
3
2
services :
4
-
5
3
logto-mariadb :
6
4
image : mariadb:latest
7
5
container_name : logto-mariadb
@@ -20,7 +18,7 @@ services:
20
18
21
19
php8 :
22
20
build :
23
- dockerfile : ./ docker/php8/Dockerfile
21
+ context : docker/php8
24
22
container_name : laravel-log-to-db-php8
25
23
tty : true
26
24
networks :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN apt update && apt install -y lsb-release gnupg2 ca-certificates apt-transpor
13
13
RUN apt update && add-apt-repository ppa:ondrej/php
14
14
RUN apt update && apt upgrade -y
15
15
RUN apt install -y curl git openssl openssh-client mysql-client bash libzip-dev zip wget
16
- RUN apt install -y php8.2 php8.2 -dev php8.2 -mysql php8.2 -mongodb php8.2 -curl php8.2 -mbstring php8.2 -pcov php8.2 -cli
16
+ RUN apt install -y php8.3 php8.3 -dev php8.3 -mysql php8.3 -mongodb php8.3 -curl php8.3 -mbstring php8.3 -pcov php8.3 -cli
17
17
18
18
RUN pecl install pcov
19
19
RUN pecl install mongodb
@@ -30,8 +30,3 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
30
30
31
31
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
32
32
RUN chmod +x /wait
33
-
34
- COPY entrypoint.sh /entrypoint.sh
35
- RUN chmod +x /entrypoint.sh
36
-
37
- ENTRYPOINT ["/entrypoint.sh" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -452,8 +452,11 @@ public function testModelInteraction()
452
452
public function testStandAloneModels ()
453
453
{
454
454
Log::info ("This is a info log message... " );
455
+
456
+ $ modelMongo = LogToDB::model (null , 'mongodb ' );
457
+
455
458
$ this ->assertNotEmpty (LogSql::get ()->toArray ());
456
- $ this ->assertNotEmpty (LogMongo:: get ()->toArray ());
459
+ $ this ->assertNotEmpty ($ modelMongo -> get ()->toArray ());
457
460
}
458
461
459
462
/**
You can’t perform that action at this time.
0 commit comments