fake() | Laravel 5 Facades
The fake method will swap the currently bound notification channel manager instance with a fake; this is incredibly useful for testing purposes. The fake notification manager instance, by default, is an instance of...
Showing 10 of 1,280 results.
The fake method will swap the currently bound notification channel manager instance with a fake; this is incredibly useful for testing purposes. The fake notification manager instance, by default, is an instance of...
The route method allows for the sending of notifications in an ad-hoc fashion. The following example demonstrates the basic usage of the route method for sending a notification to someone who has purchased something: 1 Notification :: route ( '...
The Queue facade defines one extra method to help make testing queue functionality within your applications easier.
The fake method will swap the currently bound queue manager instance with a fake; this is incredibly useful for testing purposes. The fake queue manager instance, by default, is an instance of "Illuminate\Support\Testing\Fakes\QueueFake".
The fake method will replace the provided $disk with a local testing disk. The local disk will be stored in your application storage path under the sub-directory location framework/testing/disks/<DISK_NAME> . The local directory will be cleared...
The persistentFake method will replace the provided $disk with a local testing disk. The local disk will be stored in your application storage path under the sub-directory location framework/testing/disks/<DISK_NAME> . The persistent local...
This function affects the original $array ; because of this you do not have to reassign the original array value to a new variable.
The signature of the forget method is: 1 public static function forget ( 2 & $ array , 3 $ keys 4 ) ;
Assuming an array is defined as follows: 1 <?php 2 3 use Illuminate \ Support \ Arr ; 4 5 $ anArray = [ 6 ' person ' => [ 7 ' first_name ' => ' Jane ' , 8 ' last_name ' => ' Doe ' 9 ] 10 ] ; We could remove the first_name value like so: 1 <?php 2...
The array_forget function is a shortcut to calling Arr::forget . This function is declared in the global namespace.