PHP code example of chaseconey / laravel-activity

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

    

chaseconey / laravel-activity example snippets


  "    "laravel/framework": "5.0.*",
      "chaseconey/laravel-activity": "dev-master"
    }
  

  'Chaseconey\ActivityRecorder\ActivityProvider'
  

  php artisan vendor:publish --provider="Chaseconey\ActivityRecorder\ActivityProvider" --tag="migrations"
  

  
  use Chaseconey\ActivityRecorder\RecordsActivity;
  
  Class Tweet extends Model
  {
    use RecordsActivity;
  }
  
  

    
	Class Tweet extends Model
    {
        use RecordsActivity;
        
        /**
		 * Which events to record for the auth'd user.
		 *
		 * @var array
		 */
        protected static $recordEvents = ['created'];
    }