Skip to content

Commit 6a5e0cb

Browse files
committed
Adjusts for L11
1 parent 1342717 commit 6a5e0cb

10 files changed

+28
-268
lines changed

cache.md

+3-28
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,10 @@ description: Configuring a custom cache driver
77

88
By default, Laravel Zero [uses the `array` driver](https://github.com/laravel-zero/framework/blob/master/src/Providers/Cache/CacheServiceProvider.php) for caching. This means that using the `Cache` facade will work out of the box for the remainder of a commands process.
99

10-
You can configure one or more custom cache drivers for your application by creating a new `config/cache.php` file.
10+
You can configure one or more custom cache drivers for your application by publishing the configuration file:
1111

12-
For example, if you wanted to use the file driver, you could add the following:
13-
14-
```php
15-
<?php
16-
17-
return [
18-
'default' => 'file',
19-
20-
'stores' => [
21-
'file' => [
22-
'driver' => 'file',
23-
'path' => storage_path('framework/cache/data'),
24-
],
25-
],
26-
];
27-
```
28-
29-
> Note, this will not work in a compiled app as the storage path in the Phar cannot be accessed.
30-
> See the [Filesystem docs](https://laravel-zero.com/docs/filesystem#production) for more details.
31-
32-
Once implemented, you can then use the `Cache` facade as with a standard Laravel application.
33-
34-
```php
35-
use Illuminate\Support\Facades\Cache;
36-
37-
Cache::put('full_name', 'Johnny Lawrence');
38-
Cache::get('full_name');
12+
```bash
13+
php <your-app-name> config:publish cache
3914
```
4015

4116
Full details on using the Cache drivers are available on the [main Laravel documentation](https://laravel.com/docs/cache).

configuration.md

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ The `config/app.php` contains information related to your application:
1919
| name | This value is the name of your application
2020
| version | This value determines the "version" your application is currently running in.
2121
| env | This value determines the "environment" your application is currently running in.
22-
| providers | The service providers listed here will be automatically loaded on your application.
2322

2423
The default command of your application contains a list of commands. That list of commands
2524
can be configured using `config/commands.php`:

create-a-logo.md

-42
This file was deleted.

database.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ that works like a breeze in the Laravel Zero environment too.
1616
Usage:
1717

1818
```php
19-
use DB;
19+
use Illuminate\Support\Facades\DB;
2020

2121
DB::table('users')->insert(
2222
['email' => 'enunomaduro@gmail.com']

documentation.md

-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
- [Service Providers](/docs/service-providers)
88
- [Configuration](/docs/configuration)
99
- [Testing](/docs/testing)
10-
- [Exception handler](/docs/exception-handler)
1110

1211
- ## Add-ons
1312
- [Database](/docs/database)
1413
- [Logging](/docs/logging)
1514
- [Filesystem](/docs/filesystem)
1615
- [Run tasks](/docs/run-tasks)
1716
- [Task Scheduling](/docs/task-scheduling)
18-
- [Create a logo](/docs/create-a-logo)
1917
- [Build interactive menus](/docs/build-interactive-menus)
2018
- [Send desktop notifications](/docs/send-desktop-notifications)
2119
- [Web Browser Automation](/docs/web-browser-automation)

exception-handler.md

-128
This file was deleted.

filesystem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Laravel Zero ships with the [Filesystem](https://laravel.com/docs/filesystem) co
1616
### Using the Storage facade
1717

1818
```php
19-
use Storage;
19+
use Illuminate\Support\Facades\Storage;
2020

2121
Storage::put("reminders.txt", "Task 1");
2222
```

installation.md

+2-26
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ description: Create a new Laravel Zero project
66
# Installation
77

88
> **Requires:**
9-
>- [PHP 8.1+](https://php.net/releases)
9+
>- [PHP 8.2+](https://php.net/releases)
1010
>- [**`sodium`** PHP extension](https://php.net/manual/book.sodium.php) (required by [Box](https://github.com/box-project/box)) - if you are bundling to a Phar
1111
12-
Laravel Zero utilizes [Composer 2](https://getcomposer.org) to manage its dependencies. So, before using Laravel Zero, make sure you have Composer installed on your machine.
13-
14-
<a name="via-composer-create-project"></a>
15-
#### Via Composer Create-Project
12+
Laravel Zero utilizes [Composer](https://getcomposer.org) to manage its dependencies. So, before using Laravel Zero, make sure you have Composer installed on your machine.
1613

1714
You may install Laravel Zero by issuing the Composer `create-project` command in your terminal:
1815

@@ -25,24 +22,3 @@ You will then need to run the `app:rename` command to rename your project:
2522
```bash
2623
php application app:rename [movie-cli]
2724
```
28-
29-
<a name="via-the-laravel-zero-installer"></a>
30-
#### Via the Laravel Zero Installer (DEPRECATED)
31-
32-
> Note: This method is deprecated, although it will continue to work.
33-
34-
If you would like to use the Laravel Zero installer, install it using Composer:
35-
36-
```bash
37-
composer global require "laravel-zero/installer"
38-
```
39-
40-
Make sure to place composer's system-wide vendor bin directory in your `$PATH` so the Laravel Zero executable can be located by your system. This directory exists in different locations based on your operating system. On macOS and GNU/Linux distributions, it's `$HOME/.composer/vendor/bin`.
41-
42-
Once installed, the `laravel-zero new` command will create a fresh Laravel Zero installation in the directory you specify. For instance, `laravel-zero new movie-cli` will create a directory named `movie-cli` containing a fresh Laravel Zero installation with all of Laravel Zero's dependencies already installed:
43-
44-
```bash
45-
laravel-zero new movie-cli
46-
```
47-
48-
On versions v2.5.0 and later, the command will also automatically rename your app.

testing.md

+1-39
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: The `tests` folder
55

66
# Testing
77

8-
The `tests` folder contains your [Pest](https://pestphp.com) or [PHPUnit](https://phpunit.de) tests. By default, Laravel Zero
8+
The `tests` folder contains your [Pest](https://pestphp.com) tests. By default, Laravel Zero
99
ships with an *Integration* suite written with Pest syntax that can be used as follows:
1010

1111
```php
@@ -21,41 +21,3 @@ As usual, you can always run your tests using the `pest` command:
2121
```bash
2222
./vendor/bin/pest
2323
```
24-
25-
<a name="asserting-that-a-command-was-called"></a>
26-
## Asserting that a command was called
27-
28-
Using the `assertCommandCalled` test helper method you can check if a specific method was called.
29-
This is helpful if you need to check if calling _SomeFirstCommand_ also triggers _AnotherCommand_.
30-
31-
The inverse of this assertion is `assertCommandNotCalled`.
32-
33-
__Note__ that both assertions are "argument-sensitive".
34-
35-
```php
36-
test('migration command', function () {
37-
$this->artisan('migrate', ['--seed' => true]);
38-
39-
// Assert that a command was called
40-
$this->assertCommandCalled('migrate', ['--seed' => true]);
41-
$this->assertCommandCalled('db:seed');
42-
43-
// Assert that a command was *NOT* called
44-
$this->assertCommandNotCalled('migrate', ['--seed' => false]);
45-
});
46-
```
47-
48-
<a name="using-phpunit-style-tests"></a>
49-
## Using PHPUnit-style tests
50-
51-
Pest has full support for running PHPUnit tests, however if you would rather use PHPUnit directly, you can either run the binary with:
52-
53-
```bash
54-
./vendor/bin/phpunit
55-
```
56-
57-
Or uninstall Pest and install PHPUnit via Composer:
58-
59-
```bash
60-
composer remove pestphp/pest --dev && composer require phpunit/phpunit --dev
61-
```

upgrade.md

+20
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: Laravel Zero Upgrade Guide
55

66
# Upgrade Guide
77

8+
- [Upgrading To 11.0 From 10.x](#upgrade-11.0.0)
89
- [Upgrading To 10.0 From 9.x](#upgrade-10.0.0)
910
- [Upgrading To 9.0 From 8.x](#upgrade-9.0.0)
1011
- [Upgrading To 8.0 From 7.x](#upgrade-8.0.0)
@@ -21,6 +22,25 @@ description: Laravel Zero Upgrade Guide
2122

2223
> We attempt to document every possible breaking change. Since some of these breaking changes are in obscure parts of the framework only a portion of these changes may actually affect your application.
2324
25+
### PHP 8.2 required
26+
27+
The new minimum PHP version is now 8.2.
28+
29+
### Updating dependencies
30+
31+
Update your `laravel-zero/framework` dependency to `^11.0` in your `composer.json` file.
32+
33+
If you are using any components (Database, Queue, etc.) that use Illuminate dependencies, these will need to be updated to `^11.5`.
34+
35+
Also, if you are using `nunomaduro/termwind`, you will need to update to `^2.0`.
36+
37+
<a name="upgrade-10.0.0"></a>
38+
## Upgrading to 10.0 from 9.x
39+
40+
### Estimated upgrade time: 5-10 minutes
41+
42+
> We attempt to document every possible breaking change. Since some of these breaking changes are in obscure parts of the framework only a portion of these changes may actually affect your application.
43+
2444
### PHP 8.1 required
2545

2646
The new minimum PHP version is now 8.1.

0 commit comments

Comments
 (0)