dedli
07/04/2022, 10:11 AMdedli
07/04/2022, 10:13 AMifox
07/04/2022, 10:13 AMdedli
07/04/2022, 10:13 AMIan.H
07/04/2022, 10:13 AM/admin
route (or any sub-route of that) I get a 404.
I'm running this in a docker-compose
environment (locally at this point) using PHP-FPM
(7.4.30) and nginx
(latest). I've added nothing but a clean Laravel 7.30
project and twill:2.1.1
(version is specific as this is what's running in a project I've been handed).
I've run the twill:install
command and registered myself as a super admin.
My relevant .env
vars are:
APP_URL=twill.test:8001
ADMIN_APP_URL=twill.test:8001
ADMIN_APP_PATH=admin
As far as I'm aware, I've done everything in the docs for install and config required for the most base-level install. The admin etc routes are all listed when running php artisan routes:list
so they appear to have been registered.
My nginx
config is (which is my generic one I use.. works fine for the likes of Livewire, Fillament, Nova, etc):
server {
listen 80 default;
client_max_body_size 108M;
access_log /var/log/nginx/application.access.log;
root /application/src/public;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
fastcgi_pass twill-php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}
If anyone has a clue regarding this (I suspect it's nginx-related) I'd be most grateful in hearing 🙂Ian.H
07/04/2022, 10:15 AMRouteServiceProvider
constructor, nothing hits when accessing the /admin
URI, but it does when I do a route:list
call, but couldn't find anything specific to nginx requirements in the docs or the likesifox
07/04/2022, 10:18 AMADMIN_APP_URL
ifox
07/04/2022, 10:20 AMIan.H
07/04/2022, 10:49 AMHarings Rob
07/04/2022, 4:17 PMifox
07/04/2022, 5:15 PMIan.H
07/04/2022, 9:07 PMadmin_app_url
(at least the login page shows). Wonder if this would have issues deeper in (as Laravel itself does) with certain aspects that use that env var for setting things (IIRC, Laravel uses it for example for asset loading and maybe redirects too? has been a long time since I've not set it up to match my actual URLs).
It's something I'll try out as I go with building this environment for the team and if it is something that's needed later, happy to contribute a PR 🙂JeanSilva
07/04/2022, 9:40 PMifox
07/05/2022, 12:11 AMdakaalim
07/05/2022, 12:52 AMDo you need to manage the position of records on this module? [yes]:
[0] no
[1] yes
> 1
1
But the generated class is missing
protected $indexOptions = [
'reorder' => true,
];
ifox
07/05/2022, 12:54 AMHarings Rob
07/05/2022, 6:18 AMHarings Rob
07/05/2022, 6:19 AMIan.H
07/05/2022, 7:54 AM24kappa
07/05/2022, 9:03 AMvendor/area17/twill/package.json
) I would like to add Vuetify library to some custom components in the backend, on my fronted side I'm using vue3 which does not support vuetify so if npm install vuetify --save
it has conflicts with the package.json
in the root of the project. Any idea on how i can do that?dedli
07/05/2022, 10:16 AMifox
07/05/2022, 10:22 AMJeanSilva
07/05/2022, 12:29 PMifox
07/05/2022, 12:31 PM$indexColumns
with a model accessor or presenter. There's an html
boolean you can use in your column definition to make sure it'll render a link.JeanSilva
07/05/2022, 12:34 PMdedli
07/05/2022, 6:07 PMprotected $previewView = 'page.show';
to my admin controller but I get error when I try to preview. Some modules show preview, some not and I cannot understand why https://monosnap.com/file/ZIixkuYejHTv8eQ4ukCmmfbnSGoGh6dedli
07/05/2022, 6:11 PMifox
07/05/2022, 6:52 PMJeanSilva
07/05/2022, 7:29 PMJeanSilva
07/05/2022, 7:30 PM