PHP code example of adrosoftware / notitia-visum

1. Go to this page and download the library: Download adrosoftware/notitia-visum 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/ */

    

adrosoftware / notitia-visum example snippets


/**
 * Inside a controller action
 */
return (new NotitiaVisum())
    ->table('users')
    ->browse();

return (new NotitiaVisum())
    ->table('users')
    ->whereRaw('role = \'admin\'')
    ->browse();

return (new NotitiaVisum())
    ->table('users')
    ->whereRaw('role = \'admin\'')
    ->browse(['id', 'first_name', 'role']);

return (new NotitiaVisum())
    ->table('users')
    ->title('System Users')
    ->browse(['id', 'first_name', 'role']);