Changelog
All notable changes to Craftable PRO will be documented on this page.
v1.1.15 - 2023-07-24
What's Changed
- Fix: bug in filters count
- Fix: validation error on translatable fields
- Fix: disabled multiselect styles
- Fix: add doctrine/dbal composer package
- Fix: add missing @tiptap/pm npm package
- Fix: translation publish error in firefox
- Fix: overriding translations
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.14 - 2023-06-20
What's Changed
- Feat: ship with translations for permissions and make generator generates default translations for permissions
- Feat: generator should support also adding relations to CraftablePRO models
- Feat: add support boolean column, update Toggle component
- Fix: generator belongs to many
- Fix: add ES module support
- Fix: added right padding for tags, to prevent overflow
Upgrade Guide
- Run
composer update
to update dependencies - If you have
"type": "module"
in your package.json (this apply for Laravel projects newer thanv10.2.0
), please follow the steps bellow to upgrade. Otherwise, you can skip these steps.- Make sure you don't have any
require
in yourcraftable-pro.vite.config.js
, if so, please take a look on the Vite config here, and change yours accordingly - Make sure you have
@formkit/auto-animate
in your package.json with the version0.7.0
or higher
- Make sure you don't have any
v1.1.13 - 2023-05-25
What's Changed
- Fix: Dropzone components update
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.12 - 2023-05-25
What's Changed
- Fix: add timestamps options to listing generator
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.11 - 2023-05-22
What's Changed
- Fix: modify styles to work better on mobile devices
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.10 - 2023-04-28
What's Changed
- Feat: added 'size' prop to 'Publish' component
- Fix: multiwords table names
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.9 - 2023-04-26
What's Changed
- Fix: PHPArrayScanner to only scan .php files
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.8 - 2023-04-20
What's Changed
- Feat: add new DateRangePicker componnet
- Fix: use customised Logo in Auth layout
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.7 - 2023-04-13
What's Changed
- Fix: Fixed 'Invalid Date' issue in DatePicker cleaning.
- Fix: Bumped actions/checkout dependency from 3.4.0 to 3.5.0.
- Feat: Made 'useForm' accept null values.
- Fix: Fixed 'sticky' classes to make sticky work.
- Feat: Added the ability to change locale for DatePicker component.
- Fix: Updated npm packages.
- Feat: Added the ability to use label/value pairs for SelectInput.
- Fix: Fixed date format for Publish component.
- Feat: Added file scanner for PHP array translations.
- Fix: Removed unnecessary imports in Vue components that caused npm warnings.
- Fix: Changed CraftableProUser e-mail through Access tab instead of Profile.
- Feat: Added new PHP array scanner for default Laravel trans files.
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.6 - 2023-03-21
What's Changed
- Fix: remove unnecessary css import
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.5 - 2023-03-16
What's Changed
- Fix: significantly reduce chunk size after build
- Fix: position of locale input on register page
- Fix: unify return types in generated controller
- Fix: remove show route from generated routes, since it just throws error
- Fix: redirect to previous listing route after model update
- Fix: reset listing page to 1 on search and filter
- Fix: improve type definitions in some Vue components
- Fix: some overall tweaks and fixes
- Feat: improve customization of inputs in dropzone
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.4 - 2023-03-1
What's Changed
- Fix Index.vue template in generator
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.3 - 2023-02-24
What's Changed
- Some small tweaks and fixes
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.2 - 2023-02-22
What's Changed
- Fix: bug which prevented multiple edits on Manage permissions page
- Fix: add missing page titles
- Fix: generator will provide options to choose table name if there is none provided
- Fix: generator should detect existing eloquent model and if present it should ask if it should be overwritten
- Fix: make translations scanner case sensitive in default Laravel installation with MySQL
- Fix: resend invitation error
- Fix: check permissions on translations edit button
- Fix: add baseUrl as computed for filters and listing
- Fix: change generated export name
- Other small tweaks and fixes
Upgrade Guide
- Run
composer update
to update dependencies
v1.1.1 - 2023-02-15
What's Changed
- Fix: compatibility issues with latest InertiaJS release
- Fix: add custom guest middleware to prevent redirects to
/home
for authenticated users
Upgrade Guide
- Run
composer update
to update dependencies
v1.1 - 2023-02-14
What's Changed
- Feat: Laravel 10 support
- Fix: fixed kebabcase to snakecase for generated relation name
- Fix: add custom 'verified' middleware to prevent bug with 'auth' middleware
- Fix: requests generating with wrong namespaces
Upgrade Guide
- Run
composer update
to update dependencies - If you have any multiword relation name in generated listing file, change the name from kebab to snake case (e.g.
article-categories
toarticle_categories
) - If you have any Craftable PRO requests already generated, check if their namespace is correct. Each request should have following namespace
App\Http\Requests\CraftablePro\<ModelName>
. If it's not like that, please change their namespace fromApp\Http\Requests\CraftablePro
toApp\Http\Requests\CraftablePro\<ModelName>
(e.g.App\Http\Requests\CraftablePro\Article
). Don't forget to change the namespace in the controllers as well.
v1.0.4 - 2023-02-13
What's Changed
- Fix: generator generating wrong and incomplete TS definitions
- Fix: prefix names of some Craftble PRO routes missed in the last release
Upgrade Guide
- Run
composer update
to update dependencies - Edit all already generated Craftable PRO .vue files and change the import of
InertiaForm
type fromimport { InertiaForm } from "@inertiajs/vue3";
toimport { InertiaForm } from "craftable-pro/types";
v1.0.3 - 2023-02-10
What's Changed
- Fix: prefix names of all Craftble PRO routes with
craftable-pro.
Upgrade Guide
- Run
composer update
to update dependencies - Edit all already generated Craftable PRO routes as seen on the example below
- change middlewares on all Craftable PRO routes from
->middleware(['craftable-pro-middlewares', 'auth:craftable-pro'])
to->middleware('craftable-pro-middlewares')
- find all instances of
route
function with built-in Craftable PRO routes in your Sidebar.vue file. See the list bellow for all Craftable PRO routes and change them to includecraftable-pro.
prefix (note that*
is a wildcard for all nested routes):route('media.*')
->route('craftable-pro.media.*')
route('craftable-pro-users.*')
->route('craftable-pro.craftable-pro-users.*')
route('roles.*')
->route('craftable-pro.roles.*')
route('translations.*')
->route('craftable-pro.translations.*')
route('settings.*')
->route('craftable-pro.settings.*')
- (optional) add
->name('craftable-pro.')
to all generated Craftable PRO routes - (optional) modify all instances of
route
function in your generated Craftable PRO .vue files to includecraftable-pro.
prefix as well
- change middlewares on all Craftable PRO routes from
Example of modified Craftable PRO routes:
Route::prefix('admin')->middleware('craftable-pro-middlewares')->name('craftable-pro.')->group(function () {
Route::get('articles', [ArticleController::class, 'index'])->name('articles.index');
Route::get('articles/create', [ArticleController::class, 'create'])->name('articles.create');
Route::post('articles', [ArticleController::class, 'store'])->name('articles.store');
Route::get('articles/{article}', [ArticleController::class, 'show'])->name('articles.show');
Route::get('articles/edit/{article}', [ArticleController::class, 'edit'])->name('articles.edit');
Route::match(['put', 'patch'], 'articles/{article}', [ArticleController::class, 'update'])->name('articles.update');
Route::delete('articles/{article}', [ArticleController::class, 'destroy'])->name('articles.destroy');
Route::post('articles/bulk-destroy', [ArticleController::class, 'bulkDestroy'])->name('articles.bulk-destroy');
});
v1.0.2 - 2023-02-10
What's Changed
- Fix: allow menu dropdown to float outside of main content
- Fix: image collection option bug
- Fix: generator related fixes
Upgrade Guide
- Run
composer update
to update dependencies - Run
npm i @headlessui-float/vue
to install new npm dependency
v1.0.1 - 2023-02-09
What's Changed
- Fix: headings in export not translated
- Fix: controller name causing error in 'route:list' command
Upgrade Guide
- Run
composer update
to update dependencies
v1.0.0 - 2023-02-07
🎉 Initial release 🎉
Last updated on July 24, 2023