Troubleshooting
This guide addresses common issues you might encounter when using Cubeta Starter and provides solutions to help you resolve them quickly.
Installation Issues
Composer Dependency Conflicts
Issue: Composer reports dependency conflicts when trying to install the package.
Solution:
- Check your Laravel version compatibility with Cubeta Starter
- Try using the
--ignore-platform-reqsflag:bashcomposer require cubeta/cubeta-starter --ignore-platform-reqs - If the issue persists, try updating your dependencies:bash
composer update
Configuration File Not Published
Issue: The configuration file is not available after installation.
Solution: Manually publish the configuration file:
php artisan vendor:publish --tag=cubeta-starter-configGeneration Issues
Command Not Found
Issue: Artisan reports that the Cubeta Starter commands are not found.
Solution:
- Make sure the package is properly installed
- Clear the configuration cache:bash
php artisan config:clear - Regenerate the autoload files:bash
composer dump-autoload
Files Not Generated in Expected Location
Issue: Generated files are not in the expected directories.
Solution:
- Check your configuration in
config/cubeta-starter.php - Ensure the directories specified in the configuration exist
- Verify you have write permissions to those directories
Relationship Generation Errors
Issue: Errors when generating models with relationships.
Solution:
- Ensure related models exist before creating relationships
- Check that the relationship types are correctly specified
- For many-to-many relationships, ensure both models are created first
Usage Issues
GUI Not Accessible
Issue: Cannot access the GUI at /cubeta-starter.
Solution:
- Ensure you're in a development environment (the GUI is only available in development)
- Check your web server configuration
- Verify middleware is not blocking the route
Generated Code Doesn't Work
Issue: Generated controllers, models, or other files have errors or don't work as expected.
Solution:
- Check that you've installed all required components:bash
php artisan cubeta:install api # or php artisan cubeta:install web - Verify that your database configuration is correct
- Look for any custom modifications that might conflict with generated code
Translatable Fields Not Working
Issue: Translatable fields are not storing or retrieving translations correctly.
Solution:
- Ensure you've configured
available_localesinconfig/cubeta-starter.php - Check that the field is properly defined as translatable in your model
- Verify the JSON format of your translatable data:json
{ "en": "English value", "fr": "French value" }
Frontend Issues
Blade Components Not Found
Issue: Blade components published by the package are not found.
Solution:
- Ensure you've installed the web components:bash
php artisan cubeta:install web - Check that the
CubetaStarterServiceProvideris registered in yourbootstrap/providers.php - Clear the view cache:bash
php artisan view:clear
Inertia.js Integration Issues
Issue: Problems with Inertia.js integration.
Solution:
- Verify you've installed the React TS stack:bash
php artisan cubeta:install react-ts php artisan cubeta:install react-ts-packages - Check that the
HandleInertiaRequestsmiddleware is registered - Ensure your frontend dependencies are installed:bash
npm install npm run dev
Database Issues
Migration Errors
Issue: Errors when running migrations generated by the package.
Solution:
- Check your database connection settings
- Ensure the migration syntax is compatible with your database driver
- Look for any conflicts with existing tables or columns
Seeder Errors
Issue: Errors when running seeders generated by the package.
Solution:
- Ensure your factories are properly defined
- Check for any missing dependencies in your models
- Verify that related models are seeded in the correct order
Permission Issues
Role and Permission Setup Errors
Issue: Problems with the roles and permissions system.
Solution:
- Make sure you've installed the permissions component:bash
php artisan cubeta:install permissions - Check that your models use the
HasRolestrait - Verify that the roles and permissions tables are migrated
Still Having Issues?
If you're still experiencing problems after trying these solutions:
- Check the GitHub repository for open issues
- Review the latest changelog for any breaking changes
- Consider opening a new issue with detailed information about your problem
Remember to include:
- Your Laravel version
- Cubeta Starter version
- Detailed description of the issue
- Steps to reproduce
- Any error messages or logs
