1Options +FollowSymLinks -Indexes
2RewriteEngine On
3
4RewriteCond %{HTTP:Authorization} .
5RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
6
7RewriteCond %{REQUEST_FILENAME} !-d
8RewriteCond %{REQUEST_FILENAME} !-f
9RewriteRule ^ index.php [L]
1 public function activity()
2 {
3 return $this->hasMany('App\Activity')
4 ->with(['user', 'subject'])
5 ->latest()->get();
6 }
7