Files
einundzwanzig-portal/app/Observers/OrangePillObserver.php
Shift 5776b01d15 Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
2023-02-19 18:05:16 +01:00

77 lines
1.8 KiB
PHP

<?php
namespace App\Observers;
use App\Models\OrangePill;
use App\Traits\TwitterTrait;
class OrangePillObserver
{
use TwitterTrait;
/**
* Handle the OrangePill "created" event.
*
* @param \App\Models\OrangePill $orangePill
* @return void
*/
public function created(OrangePill $orangePill)
{
// if (config('feeds.services.twitterAccountId')) {
// $this->setNewAccessToken(1);
//
// $text = sprintf("Ein neues Bitcoin-Buch liegt nun in diesem öffentlichen Bücherschrank:\n\n%s\n\n%s\n\n%s\n\n#Bitcoin #Education #Einundzwanzig #gesundesgeld",
// $orangePill->bookCase->title,
// $orangePill->bookCase->address,
// url()->route('bookCases.comment.bookcase', ['country' => 'de', 'bookCase' => $orangePill->bookCase]),
// );
//
// $this->postTweet($text);
// }
}
/**
* Handle the OrangePill "updated" event.
*
* @param \App\Models\OrangePill $orangePill
* @return void
*/
public function updated(OrangePill $orangePill)
{
//
}
/**
* Handle the OrangePill "deleted" event.
*
* @param \App\Models\OrangePill $orangePill
* @return void
*/
public function deleted(OrangePill $orangePill)
{
//
}
/**
* Handle the OrangePill "restored" event.
*
* @param \App\Models\OrangePill $orangePill
* @return void
*/
public function restored(OrangePill $orangePill)
{
//
}
/**
* Handle the OrangePill "force deleted" event.
*
* @param \App\Models\OrangePill $orangePill
* @return void
*/
public function forceDeleted(OrangePill $orangePill)
{
//
}
}