Code Monkey home page Code Monkey logo

Comments (16)

atmonshi avatar atmonshi commented on August 18, 2024 1

yes, I will find a better way to handle the routes for the frontend, that is way I asked about the panels
I may add config file for the frontend options.

will be fixed in few days
thank you for the time to check this :)

from sky.

atmonshi avatar atmonshi commented on August 18, 2024 1

New release to address the configuration for multiple panels.
I hope this will fix any issues.
Anyone facing new issues, please feel free to open new one :)

Thank you for using Sky.

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

if you print out
phpinfo(); in any page index.php for example

do you see the redis-ext ?

restarted apache or nginx ?

from sky.

badrshs avatar badrshs commented on August 18, 2024

got same error yesterday on v2

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

I am using

https://github.com/calebporzio/sushi

How It Works Under the hood, this package creates and caches an SQLite database JUST for this model. It creates a table and populates the rows. If for whatever reason, it can't cache a .sqlite file, it will default to using an in-memory sqlite database.

check this also
lara-zeus/bolt#140 (comment)

maybe its folders permissions

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

@badrshs

got same error yesterday on v2

was it a fresh installation or an upgrade?

from sky.

TapanDerasari avatar TapanDerasari commented on August 18, 2024

if you print out phpinfo(); in any page index.php for example

do you see the redis-ext ?

restarted apache or nginx ?

Yes it shows the redis as enabled

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

if you can install and use sushi

in your app without sky
and see if it runs fine?!

hard for me to debug...

operating system
PHP version
what extension you enable in php
apache or nginx
folders permissions
other packages

from sky.

TapanDerasari avatar TapanDerasari commented on August 18, 2024

@atmonshi thanks for the suggestion I tried the Sushi in fresh installation of laravel 10.x and separate project with Sky,

It creates the sushi model files and the sushi-lara-zeus-sky-models-post-status.sqlite. but still no luck.

Operating System: Ubuntu
PHP 8.2
Apache with folder permission of 777

from sky.

badrshs avatar badrshs commented on August 18, 2024

Hi guys, Im getting same issue as reported but I'm on windows and I use mysql as normal and fresh project ..

you guys are talking on the redis , why I would even need that ? can't see at least anything in the documentation talking about it ..

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

@badrshs

I am using

https://github.com/calebporzio/sushi

How It Works Under the hood, this package creates and caches an SQLite database JUST for this model. It creates a table and populates the rows. If for whatever reason, it can't cache a .sqlite file, it will default to using an in-memory sqlite database.

check this also lara-zeus/bolt#140 (comment)

maybe its folders permissions

from sky.

TapanDerasari avatar TapanDerasari commented on August 18, 2024

@atmonshi @badrshs

I did installed the Sushi, it seems like Now I can access the posts, pages etc...

But when there are no records in every resources navigation was working fine but after creation of one post, posts.index is inaccessible .

It gives Route [post] not defined.

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

@TapanDerasari can you share your config from adminPanelProvider

also run php artisan route:list to see if sky routes registered or not

from sky.

TapanDerasari avatar TapanDerasari commented on August 18, 2024

@atmonshi Here is adminPanelProvider file that I configure after reviewing your demo app code.

AdminPanelProvider.php
$panel->plugins($this->getPlugins());

public function getPlugins(): array
    {
        return [
            SpatieLaravelTranslatablePlugin::make()
                ->defaultLocales(['en']),
            FilamentNavigation::make(),
            SkyPlugin::make(),
        ];
    }

and here is the route list result of posts routes

GET|HEAD   admin/posts ........................................................... filament.admin.resources.posts.index › LaraZeus\Sky › ListPosts
  GET|HEAD   admin/posts/create .................................................. filament.admin.resources.posts.create › LaraZeus\Sky › CreatePost
  GET|HEAD   admin/posts/{record}/edit ............................................... filament.admin.resources.posts.edit › LaraZeus\Sky › EditPost

Create and Edit pages are working but listing page of posts,library and pages not working.

Let me know if anything else requires..

from sky.

atmonshi avatar atmonshi commented on August 18, 2024

Do you have more than one panel?
if so, try to add SkyPlugin::make(), to the other plugins for testing.

Can you check the file in your vendor folder? and it is the same as:
https://github.com/lara-zeus/sky/blob/3.x/routes/web.php

and here is the route list result of posts routes

You should see something like:
GET|HEAD sky/post/{slug} ............................................................ post › LaraZeus\Sky › Post

from sky.

TapanDerasari avatar TapanDerasari commented on August 18, 2024

Yes, I do have multiple panel and after adding the plugin code to the another panel It did started working.

also yes, both web.php files are identical.

In the route list now there are routes that you mentioned.

But I think this is a bug bcz I don't need the plugin functionality into my another panel. :)

from sky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.