You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cache.md
+3-28Lines changed: 3 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,35 +7,10 @@ description: Configuring a custom cache driver
7
7
8
8
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.
9
9
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:
11
11
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
39
14
```
40
15
41
16
Full details on using the Cache drivers are available on the [main Laravel documentation](https://laravel.com/docs/cache).
Copy file name to clipboardExpand all lines: installation.md
+2-26Lines changed: 2 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,10 @@ description: Create a new Laravel Zero project
6
6
# Installation
7
7
8
8
> **Requires:**
9
-
>-[PHP 8.1+](https://php.net/releases)
9
+
>-[PHP 8.2+](https://php.net/releases)
10
10
>-[**`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
11
11
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
-
<aname="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.
16
13
17
14
You may install Laravel Zero by issuing the Composer `create-project` command in your terminal:
18
15
@@ -25,24 +22,3 @@ You will then need to run the `app:rename` command to rename your project:
25
22
```bash
26
23
php application app:rename [movie-cli]
27
24
```
28
-
29
-
<aname="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.
Copy file name to clipboardExpand all lines: upgrade.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ description: Laravel Zero Upgrade Guide
5
5
6
6
# Upgrade Guide
7
7
8
+
-[Upgrading To 11.0 From 10.x](#upgrade-11.0.0)
8
9
-[Upgrading To 10.0 From 9.x](#upgrade-10.0.0)
9
10
-[Upgrading To 9.0 From 8.x](#upgrade-9.0.0)
10
11
-[Upgrading To 8.0 From 7.x](#upgrade-8.0.0)
@@ -21,6 +22,25 @@ description: Laravel Zero Upgrade Guide
21
22
22
23
> 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.
23
24
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
+
<aname="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.
0 commit comments