PHP code example of ronildo-sousa / devto-for-laravel

1. Go to this page and download the library: Download ronildo-sousa/devto-for-laravel 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/ */

    

ronildo-sousa / devto-for-laravel example snippets


return [
];

 DevtoForLaravel::articles()
    ->get();

 DevtoForLaravel::articles()
    ->perPage(5)
    ->get();

 DevtoForLaravel::articles()
    ->withTags(['tag1', 'tag2'])
    ->withoutTags(['tag3', 'tag4'])
    ->get();

 DevtoForLaravel::articles()
    ->from('username')
    ->get();

 DevtoForLaravel::articles()
    ->latest()
    ->get();

 DevtoForLaravel::articles()
    ->find(258)
bash
php artisan vendor:publish --tag="devto-for-laravel-config"