Skip to content

alnutile/yacms

Repository files navigation

YACms

So this will attempt to be a CMS that has 100% of it's docs in https://filamentphp.com/ and https://laravel.com (oh and JetStream) plus an libraries it uses.

The goal will to not be like TwillCMS or Statamic CMS and have docs that seem to have some 'gray' areas or do things differently than Laravel and then not really explain how to do it. (looking at your TwillCMS).

So ideally you can build pages, show them in the UI and just use normal Laravel/Filament.

All CMSs have tons of details since that is what makes anything so niche and good at what it does. And I said 100000x I would not do this but then I came across https://filamentphp.com/docs/3.x/forms/fields/builder and thought hmm if this can work then maybe I can make this work without a crazy amount of custom work on my end (maybe none)

Good luck!

Libraries

  • Laravel
  • Filament
  • Flowbite (frontend helper)
  • Spatie Tags
  • Scout
  • Inertia/Vue if you want for front end else use what you want
  • JetStream

Builder and Pages

This is the inspiration for this

Sources of "truth"

Composer.json

Check it out to see other libraries installed and then what you can do with it

PHPUnit Tests

Check them out for a sense of how things work

Tailwind config?

Might be some things here since Flowbite sets up items for the theme etc

Seeding

php artisan db:seed --class=PageSeeder

Scout

php artisan scout:delete-index "App\Models\Page"
php artisan scout:import "App\Models\Page"

Importers

Statamic

Add a user first since these will be assigned to that user

The class is StatamicImporter and the command is StatamicImportCommand

I exported my data using steadfastcollective/statamic-csv-exporter and it went well.

Just mess around with the code till it matches your columns

php artisan app:statamic-import-command /Users/alfrednutile/Downloads/blog-fixed.csv

and see what happens

Make sure to run your indexers see above

Releases

No releases published

Packages

No packages published