Closed omanbuluatie closed 11 months ago
this is my composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"barryvdh/laravel-dompdf": "^2.0",
"barryvdh/laravel-snappy": "^1.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8",
"laravel/ui": "^4.2",
"laravelcollective/html": "^6.4",
"maatwebsite/excel": "3.*",
"yajra/laravel-datatables-buttons": "^10.0",
"yajra/laravel-datatables-export": "^10.1",
"yajra/laravel-datatables-html": "^10.11",
"yajra/laravel-datatables-oracle": "10.*"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"mrdebug/crudgen": "^1.10",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"files": [
"app/helper/myhelpers.php"
],
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
if i add {--with-livewire still got the error
D:\website8\htdocs\laravel\courseone>php artisan make:crud post "title:string, content:text" {--with-livewire
The "with-livewire" option does not exist.
hi @omanbuluatie i pushed a new version 1.10.7, can you try it please?
D:\website8\htdocs\laravel\courseone>composer require mrdebug/crudgen --dev ./composer.json has been updated Running composer update mrdebug/crudgen Loading composer repositories with package information Updating dependencies Lock file operations: 1 install, 0 updates, 0 removals
Installing mrdebug/crudgen (1.10.7): Extracting archive Package laravelcollective/html is abandoned, you should avoid using it. Use spatie/laravel-html instead. Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi
INFO Discovering packages.
laravel/sail .................................................................................................. DONE laravel/sanctum ............................................................................................... DONE laravel/tinker ................................................................................................ DONE laravel/ui .................................................................................................... DONE laravelcollective/html ........................................................................................ DONE mrdebug/crudgen ............................................................................................... DONE nesbot/carbon ................................................................................................. DONE nunomaduro/collision .......................................................................................... DONE nunomaduro/termwind ........................................................................................... DONE spatie/laravel-ignition ....................................................................................... DONE yajra/laravel-oci8 ............................................................................................ DONE
85 packages you are using are looking for funding.
Use the composer fund
command to find out more!
@php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found. Using version ^1.10 for mrdebug/crudgen
D:\website8\htdocs\laravel\courseone>php artisan vendor:publish --provider="Mrdebug\Crudgen\CrudgenServiceProvider"
INFO Publishing assets.
File [D:\website8\htdocs\laravel\courseone\config\crudgen.php] already exists .............................. SKIPPED Copying directory [D:\website8\htdocs\laravel\courseone\vendor\mrdebug\crudgen\src\stubs\default-theme] to [D:\website8\htdocs\laravel\courseone\resources\crudgen\views\default-theme] DONE File [D:\website8\htdocs\laravel\courseone\resources\views\default.blade.php] already exists ............... SKIPPED File [D:\website8\htdocs\laravel\courseone\resources\crudgen\commentable\comment-block.stub] already exists SKIPPED
D:\website8\htdocs\laravel\courseone>php artisan make:crud post "title:string, content:text" Controller Posts already exists Created views directory: posts Created View: index.blade.php Created View: create.blade.php Created View: show.blade.php Created View: edit.blade.php Created Request: Post
Do you want to create relationships between this model and another one? (yes/no) [no]:
yes
Which type?: [0] belongsTo [1] hasOne [2] hasMany [3] belongsToMany [4] Cancel
4
INFO Model [D:\website8\htdocs\laravel\courseone\app\Models\Post.php] created successfully.
Created Migration: 2023_12_11_083713_create_posts_table.php
D:\website8\htdocs\laravel\courseone>php artisan migrate
INFO Running migrations.
2023_12_11_083713_create_posts_table .................................................................... 164ms DONE
the installation and migrate is working but then i have another issue
the create form is opened but when i submit the post
Error Code : 904 Error Message : ORA-00904: "BODY": invalid identifier Position : 30 Statement : insert into "POSTS" ("TITLE", "BODY", "UPDATED_AT", "CREATED_AT") values (:p0, :p1, :p2, :p3) returning "ID" into :p4 Bindings : [tes,resdfdsfsdfs,2023-12-11 08:44:52,2023-12-11 08:44:52,0]
when return the post data i get this:
{"_token":"aunyeHo0wAyJE6fm8AVwbAxovNqn5LmgnRkFdj9G","title":"tes","body":"resdfdsfsdfs"}
i think the name of the textarea is not same with the column.
php artisan make:crud post "title:string, content:text"
"BODY"
not an error from crudgen
ok then, may be i do the mistake, thanks thoug
i'm using laravel 10 and just install the package and try, but got this error, please help me