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 | |
class ThemosisValetDriver extends BasicValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
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
const _ = require("lodash"); | |
const twTheme = require("tailwindcss/defaultTheme"); | |
const Color = require("color"); | |
const brandColors = {}; | |
const customColors = { | |
primary: { | |
default: twTheme.colors.blue[500], | |
text: 'white' |
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 | |
class LocalValetDriver extends ValetDriver | |
{ | |
private $site_folder = '/public'; | |
/** | |
* Determine if the driver serves the 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
<?php | |
namespace App\Providers; | |
use Filament\Facades\Filament; | |
use Illuminate\Foundation\Vite; | |
use Illuminate\Support\ServiceProvider; | |
class FilamentServiceProvider extends ServiceProvider | |
{ |
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
const fs = require("fs"); | |
const axios = require("axios").default; | |
function getStylesArray(css) { | |
return css | |
.split("}") | |
.map(function (rule) { | |
return rule ? rule.split("{")[0] : ""; | |
}) | |
.filter(function (rule, index, self) { |
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": "awcodes/laraplay", | |
"type": "project", | |
"description": "The Laravel Framework.", | |
"license": "MIT", | |
"require": { | |
"php": "^8.0.2", | |
"awcodes/filament-addons": "dev-main as 0.3.11", | |
"awcodes/filament-curator": "dev-main", | |
"awcodes/filament-gravatar": "dev-main", |
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\Forms\Components; | |
use Closure; | |
use Filament\Forms\Components\Actions\Action; | |
use Filament\Forms\Components\Field; | |
class DropInAction extends Field | |
{ |
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\Forms\Components; | |
use Filament\Forms\Components\Group; | |
class BlockSettings extends Group | |
{ | |
protected string $view = 'filament.forms.components.block-settings'; |
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
.filament-login-page { | |
@apply block p-0 m-0 bg-none dark:bg-none; | |
> div:first-child { | |
@apply p-0 m-0 bg-white/70 backdrop-blur-xl relative dark:bg-black/80 h-screen flex flex-col space-y-0 max-w-sm border-r-4 border-primary-500; | |
> form:first-child { | |
@apply border-none rounded-none relative flex-1 bg-transparent shadow-none grid content-center dark:bg-transparent backdrop-blur-none; | |
label span:not(input + span) { |
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
public function show(Request $request) | |
{ | |
$slug = Str::of($request->getPathInfo())->rtrim('/')->afterLast('/'); | |
$page = Page::where('slug', $slug)->isPublished()->firstOrFail(); | |
if ($page->front_page) { | |
return redirect()->to(route('welcome')); | |
} | |
return view('page', [ |
OlderNewer