Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 95cc754

Browse files
emptynickgitbook-bot
authored andcommitted
GitBook: [docs] 10 pages and 17 assets modified
1 parent d96e1a5 commit 95cc754

27 files changed

+31
-2
lines changed
Loading
70.5 KB
Loading
Loading
Loading
Loading
Loading
Loading
565 KB
Loading
291 KB
Loading
225 KB
Loading
Loading

docs/.gitbook/assets/b6275df-rel.png

86.4 KB
Loading
Loading
-20.1 KB
Binary file not shown.
Loading
117 KB
Loading
124 KB
Loading

docs/core-concepts/bread-builder.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Since `v0.10.13` you can do the `required` and `max:12` rule the following way:
180180
}
181181
```
182182

183-
You can find a list of all available validation rules in the [Laravel docs](https://laravel.com/docs/validation#available-validation-rules).
183+
You can find a list of all available validation rules in the [Laravel docs](https://laravel.com/docs/validation#available-validation-rules).
184184

185185
## Generating Slugs
186186

@@ -201,7 +201,7 @@ This will automatically generate the slug from the input of the `title` field. I
201201

202202
Using the BREAD builder you can easily create Relationships between tables. At the bottom of the page you will see a new button that says 'Create Relationship'
203203

204-
![](../.gitbook/assets/bread-relationship.png)
204+
![](https://github.com/emptynick/voyager/tree/481ce432d3659830b78d2afd6d0e300796515c37/docs/.gitbook/assets/bread-relationship.png)
205205

206206
{% hint style="info" %}
207207
**Notice**
@@ -264,3 +264,4 @@ The **id** will let you specify a custom id wrapper around your element. example
264264
<!-- Your field element -->
265265
</div>
266266
```
267+

docs/core-concepts/compass.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ In the Command section you can actually run some artisan commands directly from
1313
And Lastly, under the Logs tab you will be able to view all your application logs.
1414

1515
![](../.gitbook/assets/compass_3.png)
16+

docs/core-concepts/database-manager.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ If you click the table name you can view the current schema. Additionally you ca
1313
You may also choose to Add BREAD \(Browse, Read, Edit, Add, & Delete\) for any of your database tables. Once a table already has BREAD you may choose to edit the current BREAD or Delete the BREAD for that table.
1414

1515
Read on further about the BREAD builder in the next section.
16+

docs/core-concepts/media-manager.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ You may also drag and drop files onto the 'upload' button to upload multiple fil
1010
**Notice on File Upload Size**
1111
If you are getting an error when trying to upload large files, this may be a setting that needs to be changed in your PHP. Be sure to check `max_file_upload` and `file_upload_size`
1212
{% endhint %}
13+

docs/core-concepts/menus-and-menu-builder.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ menu('main', 'my_menu');
4141
```
4242

4343
And your custom menu will now be output.
44+

docs/core-concepts/roles-and-permissions.md

+1
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ Or perhaps you need to run an else condition for a permission. That's simple eno
7676
```
7777

7878
Couldn't be easier, right ;\)
79+

docs/core-concepts/settings.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ Or inside of any blade template like:
1818
```
1919

2020
So, now you can add all kinds of settings in Voyager and reference them in your application.
21+

docs/getting-started/upgrading.md

+1
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ php artisan view:clear
103103
## Troubleshooting
104104

105105
Be sure to ask us on our slack channel if you are experiencing any issues and we will try and assist. Thanks.
106+

docs/summary.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636

3737
* [Using HTTPS on yours site](troubleshooting/using-https.md)
3838
* [Missing required parameter](troubleshooting/missing-required-parameter.md)
39+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Missing required parameter
2+
3+
**Symptom:** You get an error page saying
4+
5+
```text
6+
Missing required parameters for [Route...]
7+
```
8+
9+
**Cause:** There are two possible causes:
10+
11+
1. You dont have a primary-key for your table
12+
2. You have a primary-key but it's **not** called `id`
13+
14+
**Solution:** As there are two causes, there are also two solutions:
15+
16+
1. Simply create a field `id` for the table
17+
2. Tell your model about your primary-key: `protected $primaryKey = 'your_primary_key';`
18+
19+
Please consider following [Eloquents model conventions](https://laravel.com/docs/eloquent#eloquent-model-conventions)
20+

0 commit comments

Comments
 (0)