Skip to content

Commit e71291c

Browse files
committed
fix conflicts
2 parents 625ce01 + 45c4a9a commit e71291c

File tree

6 files changed

+28
-9
lines changed

6 files changed

+28
-9
lines changed

dusk.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,16 @@ Sometimes you may wish to pause the execution of a test until a given JavaScript
551551
// Wait a maximum of one second for the expression to be true...
552552
$browser->waitUntil('App.data.servers.length > 0', 1);
553553

554+
#### Waiting On Vue Expressions
555+
556+
The following methods may be used to wait until a given Vue component attribute has a given value:
557+
558+
// Wait until the component attribute contains the given value...
559+
$browser->waitUntilVueIs('user.name', 'Taylor', '@user');
560+
561+
// Wait until the component attribute doesn't contain the given value...
562+
$browser->waitUntilVueIsNot('user.name', null, '@user');
563+
554564
#### Waiting With A Callback
555565

556566
Many of the "wait" methods in Dusk rely on the underlying `waitUsing` method. You may use this method directly to wait for a given callback to return `true`. The `waitUsing` method accepts the maximum number of seconds to wait, the interval at which the Closure should be evaluated, the Closure, and an optional failure message:

eloquent-relationships.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -843,18 +843,23 @@ You may also specify an operator and count to further customize the query:
843843

844844
Nested `has` statements may also be constructed using "dot" notation. For example, you may retrieve all posts that have at least one comment and vote:
845845

846-
// Retrieve all posts that have at least one comment with votes...
846+
// Retrieve posts that have at least one comment with votes...
847847
$posts = App\Post::has('comments.votes')->get();
848848

849849
If you need even more power, you may use the `whereHas` and `orWhereHas` methods to put "where" conditions on your `has` queries. These methods allow you to add customized constraints to a relationship constraint, such as checking the content of a comment:
850850

851851
use Illuminate\Database\Eloquent\Builder;
852-
853-
// Retrieve all posts with at least one comment containing words like foo%
854-
$posts = App\Post::whereHas('comments', function (Builder $query) {
852+
853+
// Retrieve posts with at least one comment containing words like foo%...
854+
$posts = App\Post::whereHas('comments', function ($query) {
855855
$query->where('content', 'like', 'foo%');
856856
})->get();
857857

858+
// Retrieve posts with at least ten comments containing words like foo%...
859+
$posts = App\Post::whereHas('comments', function ($query) {
860+
$query->where('content', 'like', 'foo%');
861+
}, '>=', 10)->get();
862+
858863
<a name="querying-relationship-absence"></a>
859864
### Querying Relationship Absence
860865

@@ -865,15 +870,15 @@ When accessing the records for a model, you may wish to limit your results based
865870
If you need even more power, you may use the `whereDoesntHave` and `orWhereDoesntHave` methods to put "where" conditions on your `doesntHave` queries. These methods allows you to add customized constraints to a relationship constraint, such as checking the content of a comment:
866871

867872
use Illuminate\Database\Eloquent\Builder;
868-
873+
869874
$posts = App\Post::whereDoesntHave('comments', function (Builder $query) {
870875
$query->where('content', 'like', 'foo%');
871876
})->get();
872877

873878
You may use "dot" notation to execute a query against a nested relationship. For example, the following query will retrieve all posts with comments from authors that are not banned:
874879

875880
use Illuminate\Database\Eloquent\Builder;
876-
881+
877882
$posts = App\Post::whereDoesntHave('comments.author', function (Builder $query) {
878883
$query->where('banned', 1);
879884
})->get();

errors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,7 @@ The `abort` helper will immediately raise an exception which will be rendered by
155155
Laravel makes it easy to display custom error pages for various HTTP status codes. For example, if you wish to customize the error page for 404 HTTP status codes, create a `resources/views/errors/404.blade.php`. This file will be served on all 404 errors generated by your application. The views within this directory should be named to match the HTTP status code they correspond to. The `HttpException` instance raised by the `abort` function will be passed to the view as an `$exception` variable:
156156

157157
<h2>{{ $exception->getMessage() }}</h2>
158+
159+
You may publish Laravel's error page templates using the `vendor:publish` Artisan command. Once the templates have been published, you may customize them to your liking:
160+
161+
php artisan vendor:publish --tag=laravel-errors

passport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
Laravel already makes it easy to perform authentication via traditional login forms, but what about APIs? APIs typically use tokens to authenticate users and do not maintain session state between requests. Laravel makes API authentication a breeze using Laravel Passport, which provides a full OAuth2 server implementation for your Laravel application in a matter of minutes. Passport is built on top of the [League OAuth2 server](https://github.com/thephpleague/oauth2-server) that is maintained by Andy Millington and Simon Hamp.
3939

40-
> {note} This documentation assumes you are already familiar with OAuth2. If you do not know anything about OAuth2, consider familiarizing yourself with the general terminology and features of OAuth2 before continuing.
40+
> {note} This documentation assumes you are already familiar with OAuth2. If you do not know anything about OAuth2, consider familiarizing yourself with the general [terminology](https://oauth2.thephpleague.com/terminology/) and features of OAuth2 before continuing.
4141
4242
<a name="installation"></a>
4343
## Installation

routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ By default, `Route::redirect` returns a `302` status code. You may customize the
8282

8383
Route::redirect('/here', '/there', 301);
8484

85-
You may use the `Route::permananentRedirect` method to return a `301` status code:
85+
You may use the `Route::permanentRedirect` method to return a `301` status code:
8686

8787
Route::permanentRedirect('/here', '/there');
8888

structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The `storage/app/public` directory may be used to store user-generated files, su
9393
<a name="the-tests-directory"></a>
9494
#### The Tests Directory
9595

96-
The `tests` directory contains your automated tests. An example [PHPUnit](https://phpunit.de/) is provided out of the box. Each test class should be suffixed with the word `Test`. You may run your tests using the `phpunit` or `php vendor/bin/phpunit` commands.
96+
The `tests` directory contains your automated tests. An example [PHPUnit](https://phpunit.de/) test is provided out of the box. Each test class should be suffixed with the word `Test`. You may run your tests using the `phpunit` or `php vendor/bin/phpunit` commands.
9797

9898
<a name="the-vendor-directory"></a>
9999
#### The Vendor Directory

0 commit comments

Comments
 (0)