Skip to content

Commit

Permalink
Merge branch 'main' into 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Sep 9, 2024
2 parents 9c8f7b9 + 58cad90 commit 46b0109
Show file tree
Hide file tree
Showing 48 changed files with 215 additions and 3 deletions.
19 changes: 19 additions & 0 deletions app/Http/Controllers/Api/AuthorController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\Author;

class AuthorController extends Controller
{
public function index()
{
return Author::paginate();
}

public function show(Author $author)
{
return $author->append('stars_count');
}
}
8 changes: 8 additions & 0 deletions app/Models/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
Expand Down Expand Up @@ -63,6 +64,13 @@ public function getStarsCount(): int
);
}

protected function starsCount(): Attribute
{
return Attribute::make(
get: fn () => $this->getStarsCount(),
);
}

public function cacheStarsCount(): void
{
cache()->forget($this->getStarsCountCacheKey());
Expand Down
Binary file added content/authors/avatars/stephenjude.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/authors/avatars/teguhrijanandi.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/authors/avatars/visual-builder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions content/authors/stephenjude.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Stephen Jude
slug: stephenjude
github_url: https://github.com/stephenjude
twitter_url: https://twitter.com/stephenjude_
---
9 changes: 9 additions & 0 deletions content/authors/teguhrijanandi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Teguh Rijanandi
slug: teguhrijanandi
github_url: https://github.com/teguh02
twitter_url: https://twitter.com/teguhnandi
sponsor_url: https://github.com/sponsors/teguh02
---

Teguh Rijanandi is a full-stack developer and researcher with a substantial background in application development. He is proficient in a wide range of technologies, including Laravel, React (including React Native), and Vue.js
11 changes: 11 additions & 0 deletions content/authors/visual-builder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Visual Builder
slug: visual-builder
github_url: https://github.com/visualbuilder
twitter_url: https://twitter.com/cannycookie
---

I started coding in 1983 on a ZX-81 and been a geeky coder ever since.
Now focused on creating business automation tools with Laravel and Filament.
With Visual Builder my team and I are working on publishing a suite of tools that we've found essential when creating business apps.
We hope they will make creating apps faster and less repetitive and provide a better customer experience.
14 changes: 14 additions & 0 deletions content/plugins/3x1io-tomato-bookmarks-menu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Bookmarks Menu
slug: 3x1io-tomato-bookmarks-menu
author_slug: 3x1io
categories: [developer-tool]
description: Add bookmarks and tags to your resources records and access theme form your sidebar
discord_url: https://discord.com/channels/883083792112300104/1265002822605344871
docs_url: https://raw.githubusercontent.com/tomatophp/filament-bookmarks-menu/master/README.md
github_repository: tomatophp/filament-bookmarks-menu
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/awcodes-recently.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Recently
slug: awcodes-recently
author_slug: awcodes
categories: [panel-builder]
description: Easily track and access recently viewed records in your filament panels.
discord_url: https://discord.com/channels/883083792112300104/1282128250725990522
docs_url: https://raw.githubusercontent.com/awcodes/recently/main/README.md
github_repository: awcodes/recently
has_dark_theme: true
has_translations: false
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/codewithdennis-larament.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Larament
slug: codewithdennis-larament
author_slug: codewithdennis
categories: [kit]
description: Kickstart your project and save time with Larament! This time-saving starter kit includes a Laravel project with FilamentPHP already installed and set up, along with extra features.
discord_url: https://discord.com/channels/883083792112300104/1282129582614380564
docs_url: https://raw.githubusercontent.com/CodeWithDennis/larament/main/README.md
github_repository: codewithdennis/larament
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
2 changes: 1 addition & 1 deletion content/plugins/filament-minimal-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Minimal Theme
slug: filament-minimal-theme
author_slug: filament
categories: [form-builder, panel-builder, table-builder, theme]
checkout_url: https://filamentthemes.lemonsqueezy.com/checkout/buy/58c32592-f76a-4685-aba2-65487cbcd3cc?embed=1&logo=0
checkout_url: https://filamentthemes.lemonsqueezy.com/buy/6f82d347-e136-468f-8ee4-02c0f04e3aec?embed=1&logo=0&discount=0
description: Featuring a clean design with less rounding, a lighter background and redesigned UI components.
github_repository: filamentphp/minimal-theme
has_dark_theme: true
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/plugins/images/awcodes-recently.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/plugins/images/lara-zeus-delia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/plugins/images/stephenjude-blog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/plugins/images/stephenjude-debugger.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/plugins/images/stephenjude-jetstream.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions content/plugins/lara-zeus-delia.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Delia ⚡️ Resources Bookmark Manager
slug: lara-zeus-delia
author_slug: lara-zeus
categories: [panel-builder]
description: Bookmark manager for your filament resources
discord_url: https://discord.com/channels/883083792112300104/1282126652284866641
docs_url: https://raw.githubusercontent.com/lara-zeus/delia/1.x/docs/filament.md
url: https://larazeus.com/delia
github_repository: lara-zeus/delia
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
2 changes: 1 addition & 1 deletion content/plugins/lara-zeus-hermes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ has_dark_theme: true
has_translations: true
is_lemon_squeezy_embedded: true
is_presale: false
price: $49.00
price: $29.00
versions: [3]
publish_date: 2023-08-22
---
2 changes: 1 addition & 1 deletion content/plugins/lara-zeus-translatable-pro.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ has_dark_theme: true
has_translations: true
is_lemon_squeezy_embedded: true
is_presale: false
price: $99.00
price: $59.00
versions: [3]
publish_date: 2024-06-27
---
14 changes: 14 additions & 0 deletions content/plugins/stephenjude-blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Blog
slug: stephenjude-blog
author_slug: stephenjude
categories: [form-builder, form-field, table-builder, table-column]
description: A faceless blog content manager with configurable richtext and markdown support.
discord_url: https://discord.com/channels/883083792112300104/1282123266248544287
docs_url: https://raw.githubusercontent.com/stephenjude/filament-blog/main/README.md
github_repository: stephenjude/filament-blog
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/stephenjude-debugger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Debugger
slug: stephenjude-debugger
author_slug: stephenjude
categories: [developer-tool]
description: Easily add Laravel Telescope and Laravel Horizon to admin panel.
discord_url: https://discord.com/channels/883083792112300104/1282123376747348028
docs_url: https://raw.githubusercontent.com/stephenjude/filament-debugger/main/README.md
github_repository: stephenjude/filament-debugger
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/stephenjude-feature-flags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature Flags
slug: stephenjude-feature-flags
author_slug: stephenjude
categories: [form-builder, form-field, table-builder, table-column, action]
description: Filament implementation of feature flags and segmentation with Laravel Pennant.
discord_url: https://discord.com/channels/883083792112300104/1282123527314477066
docs_url: https://raw.githubusercontent.com/stephenjude/filament-feature-flags/main/README.md
github_repository: stephenjude/filament-feature-flags
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/stephenjude-jetstream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Jetstream
slug: stephenjude-jetstream
author_slug: stephenjude
categories: [kit, panel-builder]
description: About Integrate all Laravel Jetstream features into your Filament application.
discord_url: https://discord.com/channels/883083792112300104/1282123688853901332
docs_url: https://raw.githubusercontent.com/stephenjude/filament-jetstream/main/README.md
github_repository: stephenjude/filament-jetstream
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/stephenjude-two-factor-authentication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Two Factor Authentication (2FA)
slug: stephenjude-two-factor-authentication
author_slug: stephenjude
categories: [kit, panel-builder, panel-authentication]
description: Add two factor authentication to new and existing Filament applications.
discord_url: https://discord.com/channels/883083792112300104/1282123767899750572
docs_url: https://raw.githubusercontent.com/stephenjude/filament-two-factor-authentication/main/README.md
github_repository: stephenjude/filament-two-factor-authentication
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/teguhrijanandi-db-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Database Sync
slug: teguhrijanandi-db-sync
author_slug: teguhrijanandi
categories: [developer-tool]
description: This package allows to sync two different Laravel Filament app databases.
discord_url: https://discord.com/channels/883083792112300104/1282131033097240586
docs_url: https://raw.githubusercontent.com/teguh02/filament-db-sync/main/README.md
github_repository: teguh02/filament-db-sync
has_dark_theme: true
has_translations: false
versions: [3]
publish_date: 2024-09-07
---
14 changes: 14 additions & 0 deletions content/plugins/visual-builder-email-templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Email Templates
slug: visual-builder-email-templates
author_slug: visual-builder
categories: [developer-tool, form-editor]
description: This package offers comprehensive email template management providing authorized editing, token replacement, multilingual support, mail class creation, and customizable theme options.
discord_url:
docs_url: https://raw.githubusercontent.com/visualbuilder/email-templates/3.x/README.md
github_repository: visualbuilder/email-templates
has_dark_theme: true
has_translations: true
versions: [3]
publish_date: 2024-08-30
---
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

use App\Http\Controllers\Api\AuthorController;
use App\Http\Controllers\Api\PluginController;
use Illuminate\Support\Facades\Route;

Route::get('plugins', [PluginController::class, 'index']);
Route::get('plugins/{plugin:slug}', [PluginController::class, 'show']);

Route::get('authors', [AuthorController::class, 'index']);
Route::get('authors/{author:slug}', [AuthorController::class, 'show']);

0 comments on commit 46b0109

Please sign in to comment.