GithubHelp home page GithubHelp logo

Comments (9)

rabol avatar rabol commented on June 12, 2024 1

I got the same - let's hope the pro version is out soon so this version can get some love :)

from craftable.

stoyanoff2020 avatar stoyanoff2020 commented on June 12, 2024 1

Thanks for the reply.
Installation that triggers that alert is made on fresh new project by running step by step (couple of times :-) ) as described on the website. https://getcraftable.com/docs/7.0/installation
I'm comfortable with Laravel, Sail and so on. Installation is running ok, selecting mysql, all dependancies are installed, then when starting generate admin part it fails with the error stated above.

from craftable.

rabol avatar rabol commented on June 12, 2024

looks like there is a @ too much in /vendor/brackets/admin-generator/resources/views/templates/admin-user/form.blade.php line 85 and line 99

from craftable.

palypster avatar palypster commented on June 12, 2024

Guys, I had only couple of minutes so I did a quick look. I don't think you're right. Double @@ is on purpose - the idea was that generator will generate the form.blade.php file for a model (during installation for admin-user) and if such model has a JSONB column, we treat is as a translatable column, so we need to generate the foreach code. But if installation breaks for you, then I guess something is wrong, but it's not it I think.

Can you provide info:

  • are you installing on fresh Laravel or existing project
  • if existing, can you provide your admin-user table, how does it look like (column names and types are enough)

We have to dive deeper into it.

from craftable.

Hellsingoff avatar Hellsingoff commented on June 12, 2024

Same here.

Clean installed sail (pgsql) with breeze.

from craftable.

sammyblackbaron avatar sammyblackbaron commented on June 12, 2024

And me - same error. If I remove the lines mentioned above (85 to 99 in /vendor/brackets/admin-generator/resources/views/templates/admin-user/form.blade.php) and then run craftable install, it completes. Clearly that's not a solution going forward though.

from craftable.

chillnet avatar chillnet commented on June 12, 2024

I am also getting the same error. I first tried installing craftable on a new Laravel 9 project using sail (MariaDB, Redis, and mail pit). I then deleted the project and utilized craftable to create a new project from scratch. Both scenarios ended up with the same result and error.

Package brackets/admin-auth installed
   INFO  Nothing to migrate.

Deleting previous files finished.
Generating App\Http\Controllers\Admin\AdminUsersController finished
Generating App\Http\Requests\Admin\AdminUser\IndexAdminUser finished
Generating App\Http\Requests\Admin\AdminUser\StoreAdminUser finished
Generating App\Http\Requests\Admin\AdminUser\UpdateAdminUser finished
Generating App\Http\Requests\Admin\AdminUser\DestroyAdminUser finished
Generating App\Http\Requests\Admin\AdminUser\ImpersonalLoginAdminUser finished
Generating /var/www/html/resources/views/admin/admin-user/index.blade.php finished
Generating /var/www/html/resources/js/admin/admin-user/Listing.js finished
Appending Listing to /var/www/html/resources/js/admin/admin-user/index.js finished

In 588e9d47f217c8dfeb09f354d0e4e48bf8a92abc.php line 99:

  syntax error, unexpected token "endforeach", expecting "elseif" or "else" or "endif" (View: /var/www/html/vendor/bra
  ckets/admin-generator/resources/views/templates/admin-user/form.blade.php)


In 588e9d47f217c8dfeb09f354d0e4e48bf8a92abc.php line 99:

  syntax error, unexpected token "endforeach", expecting "elseif" or "else" or "endif"


Aborted.

from craftable.

palypster avatar palypster commented on June 12, 2024

Okay, I have reported an issue to the laravel, as long as they probably broke it with one of those latest releases:
laravel/framework#45915

Anyway, I fixed it in our package by using different approach:
BRACKETS-by-TRIAD/admin-generator@63099d7

from craftable.

palypster avatar palypster commented on June 12, 2024

let's hope the pro version is out soon

🥳 https://craftable.pro/

from craftable.

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.