This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Verify the signature of a signed request. | |
* | |
* @param string $signature The signature parameter from the request. | |
* @param string $payload The payload to verify. | |
* @param string $token The signing token. | |
* @return boolean | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Illuminate\Database\Eloquent\Model; | |
trait HasSlugToken | |
{ | |
/** | |
* The length of the slug. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@props([ | |
'engagementRate' => 5, // 0 - 10 | |
'size' => 'md', // sm, md, lg | |
]) | |
<div class="w-full -mt-3"> | |
<div class="flex w-full"> | |
<div class="flex flex-col items-center -ml-5" | |
style="margin-left: {{ $engagementRate >= 10 ? $engagementRate * 9.6 : $engagementRate * 9 }}%;"> | |
<div class="flex items-center justify-center text-sm font-medium text-gray-600 bg-white border border-gray-200 rounded-full shadow-sm bg-opacity-90 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{-- views/home.blade.php --}} | |
<x-icon name="alarm" class="w-4 h-4" /> | |
<x-icon name="calendar-plus" class="w-4 text-red-200 h-4" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Illuminate\Database\Eloquent\Model; | |
trait CanIgnoreTimestamps | |
{ | |
protected static $ignoreTimestamps = false; |