This file contains 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\Http\Controllers\Webhooks; | |
use App\Http\Controllers\Controller; | |
use App\Models\WebhookCall; | |
use App\WebhookClient\SignatureValidator\GitHubSignatureValidator; | |
use Illuminate\Http\Request; | |
use Spatie\WebhookClient\WebhookConfig; | |
use Spatie\WebhookClient\WebhookProcessor; |
This file contains 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\WebhookClient\Payload; | |
use App\Contracts\WebhookPayload; | |
use Illuminate\Support\Str; | |
class GitHub implements \App\Contracts\WebhookPayload | |
{ | |
protected $header; |
This file contains 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
name: Unit Test | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
release: |
This file contains 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 Tests\Feature; | |
use App\Http\Middleware\LearnUnitTestMiddleware; | |
use Tests\TestCase; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\Response; | |
use Mockery; |
This file contains 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 Tests\Feature; | |
use App\Http\Middleware\LearnUnitTestMiddleware; | |
use Tests\TestCase; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\Response; | |
use Mockery; |
This file contains 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\Http\Middleware; | |
use Closure; | |
class LearnUnitTestMiddleware | |
{ | |
/** | |
* Handle an incoming request. |
This file contains 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
@foreach (\Laravel\Nova\Nova::availableTools(request()) as $tool) | |
{!! $tool->renderNavigation() !!} | |
@endforeach |
This file contains 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\Providers; | |
use Illuminate\Support\Facades\Gate; | |
use Laravel\Nova\Nova; | |
use Laravel\Nova\NovaApplicationServiceProvider; | |
class NovaServiceProvider extends NovaApplicationServiceProvider | |
{ |
This file contains 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
<template> | |
<div> | |
<card class="p-2 m-1 w-full" v-for="item in card.menus" :key="item.group"> | |
<div class="tab__header"> | |
<a href="#" class="tab__link p-4 block no-underline flex justify-between" @click.prevent="active = !active"> | |
<strong class="text-80">{{ item.group }}</strong> | |
<span class="down-Arrow text-80" v-show="!active">▼</span> | |
<span class="up-Arrow text-80" v-show="active">▲</span> | |
</a> |