1. Go to this page and download the library: Download wcg104/lead library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wcg104 / lead example snippets
// To use api resource add this in route and change name of lead according to your
// Remove one scope
Lead::withoutGlobalScope(AgeScope::class)->get();
// Remove all of the global scopes...
Lead::withoutGlobalScopes()->get();
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="DB_CONNECTION" value="sqlite"/> // write database connection if you want to test in different database
<env name="DB_DATABASE" value=":memory:"/> //write your database name if you want to test in different database
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
php artisan vendor:publish --tag=lead
php artisan migrate
php artisan test
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.