Comments (9)
I got the same - let's hope the pro version is out soon so this version can get some love :)
from craftable.
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.
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.
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.
Same here.
Clean installed sail (pgsql) with breeze.
from craftable.
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.
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.
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.
let's hope the pro version is out soon
from craftable.
Related Issues (20)
- ERROR : Can't install at all HOT 9
- Improve AdminListing pagination to allow customize page name attribute HOT 2
- Improve Media Library to use max fize size value from config
- I will redesign the readme.md HOT 1
- Enhancement of README.md HOT 3
- Cannot install the installer HOT 2
- Listing columns empty HOT 1
- issue with multiselect default Value HOT 2
- 14 Warnings about slash-div when runing npm HOT 1
- Not compatible with Laravel 9 (with Vite) HOT 1
- pagination not working if primary key name is not 'id' HOT 3
- WHAT IS THE PASSWORD??????? HOT 2
- Base table or view not found: 1146 Table 'testblog.permissions' doesn't exist HOT 7
- Problem installing Craftable Installer globally HOT 2
- Support for Laravel 10 / PHP 8 HOT 11
- Translations are not saved - "The GET method is not supported" HOT 3
- Declaration of Brackets\AdvancedLogger\Formatters\LineWithHashFormatter incompatible with Monolog\Formatter\LineFormatter - Laravel 10 HOT 2
- after use craftable install, .env file always set DB_PASSWORD=password...thats make error in database HOT 3
- Issue with Generated CRUD Menu in Laravel Craftable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craftable.