PHP code example of teksite / handler

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

    

teksite / handler example snippets


'providers' => [
    // Other Service Providers
    Teksite\Handler\ServiceProvider::class,
],

'providers' => [
    // Other Service Providers
    Teksite\Handler\ServiceProvider::class,
];

\Teksite\Handler\Actions\ServiceWrapper

 return app(ServiceWrapper::class)(function () use ($inputs, $post) {
       $post->update(Arr::except($inputs, ['tag', 'meta', 'seo']));
       return $post;
 });

\Teksite\Handler\Services\FetchDataService

  public function get(mixed $fetchData = [])
  {
      return app(ServiceWrapper::class)(function () use ($fetchData) {
          return app(FetchDataService::class)(Post::class, ['title'], ...$fetchData);
      });
  }
bash
php artisan vendor:publish --provider="Teksite\Handler\ServiceProvider"