Dhruva
Dhruva
FFilament
Created by Dhruva on 2/2/2024 in #❓┊help
npm run build is failing on github actions
npm-build:
needs: build-and-test
name: 'Build NPM Assets'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build Assets
run: npm run build
- name: Pull changes
run: git pull
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: 'staging'
commit_message: >
chore: build npm assets
npm-build:
needs: build-and-test
name: 'Build NPM Assets'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build Assets
run: npm run build
- name: Pull changes
run: git pull
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: 'staging'
commit_message: >
chore: build npm assets
7 replies
FFilament
Created by Dhruva on 2/2/2024 in #❓┊help
npm run build is failing on github actions
@awcodes Thank you for your reply. I have added install composer dependencies in previous step. Kindly have a look on my yml file.
jobs:
build-and-test:
name: 'Build and Tests'
runs-on: ubuntu-latest
strategy:
fail-fast: true

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.2'
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"

- name: Install Composer Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache

- name: Generate key
run: php artisan key:generate

- name: Clear Config and Cache
run: |
php artisan config:clear
php artisan cache:clear

- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite

- name: Run PEST
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: ./vendor/bin/pest

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github

npm-build:
needs: build-and-test
name: 'Build NPM Assets'
runs-on: ubuntu-latest

jobs:
build-and-test:
name: 'Build and Tests'
runs-on: ubuntu-latest
strategy:
fail-fast: true

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.2'
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"

- name: Install Composer Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache

- name: Generate key
run: php artisan key:generate

- name: Clear Config and Cache
run: |
php artisan config:clear
php artisan cache:clear

- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite

- name: Run PEST
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: ./vendor/bin/pest

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github

npm-build:
needs: build-and-test
name: 'Build NPM Assets'
runs-on: ubuntu-latest

7 replies
FFilament
Created by Dhruva on 1/21/2024 in #❓┊help
Call to undefined method Filament\Resources\Pages\PageRegistration::shouldRegisterNavigation()
Thanks @JJSanders Its working now. But I am still not able to figure out what was the issue.
6 replies
FFilament
Created by Dhruva on 1/21/2024 in #❓┊help
Call to undefined method Filament\Resources\Pages\PageRegistration::shouldRegisterNavigation()
HI @JJSanders The error I am receiving is
Call to undefined method Filament\Resources\Pages\PageRegistration::shouldRegisterNavigation()
Call to undefined method Filament\Resources\Pages\PageRegistration::shouldRegisterNavigation()
6 replies
FFilament
Created by Wannes on 1/15/2024 in #❓┊help
[3.2.0] Export to CSV relationships
I am also facing same issue.
30 replies
FFilament
Created by trovster on 8/7/2023 in #❓┊help
Using domain causes CORS issues
@trovster are you able to find solution for this issue?
46 replies
FFilament
Created by trovster on 8/7/2023 in #❓┊help
Using domain causes CORS issues
I am also facing same issue for sub domains.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
(Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
(Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.)
Please help.
46 replies
FFilament
Created by Dhruva on 8/5/2023 in #❓┊help
Test Error - Call to a member function getId() on null
@pboivin I think I have not registered panel provider in base TestCase. I am not able to find any documentation on this 🤔
7 replies
FFilament
Created by rg.block on 8/3/2023 in #❓┊help
FileUpload on edit page
Please try adding following method in your component
protected function getFormModel(): Package|string
{
return $this->package ?? Package::class;
}
protected function getFormModel(): Package|string
{
return $this->package ?? Package::class;
}
35 replies
FFilament
Created by Dhruva on 8/2/2023 in #❓┊help
How can I set different width for create and edit page than list pages in resource
Thanks
5 replies
FFilament
Created by Dhruva on 8/1/2023 in #❓┊help
Unable to locate file in Vite manifest: resources/css/filament/admin/theme.css on Production
yes i have put viteTheme in panel service
25 replies
FFilament
Created by Dhruva on 8/1/2023 in #❓┊help
Unable to locate file in Vite manifest: resources/css/filament/admin/theme.css on Production
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/filament/admin/theme.css',
'resources/css/app.css',
'resources/js/app.tsx',
],
ssr: 'resources/js/ssr.tsx',
refresh: true,
}),
react(),
],
});
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/filament/admin/theme.css',
'resources/css/app.css',
'resources/js/app.tsx',
],
ssr: 'resources/js/ssr.tsx',
refresh: true,
}),
react(),
],
});
25 replies
FFilament
Created by Dhruva on 8/1/2023 in #❓┊help
Unable to locate file in Vite manifest: resources/css/filament/admin/theme.css on Production
yes.. i run npm run build on production my site frontend is react.
25 replies
FFilament
Created by Dhruva on 7/29/2023 in #❓┊help
CSS issues
Thanks
3 replies
FFilament
Created by Dhruva on 6/2/2023 in #❓┊help
Pivot Column Reorder
Ok. Thanks
8 replies
FFilament
Created by Dhruva on 6/2/2023 in #❓┊help
Pivot Column Reorder
I am using standalone table builder and form builder package
8 replies
FFilament
Created by Dhruva on 4/6/2023 in #❓┊help
Is there any way to hide modal's submit button ?
Thanks. Changing to view action worked! Thanks a lot.
5 replies