Download the PHP package ahmadyousefdev/automs without Composer
On this page you can find all versions of the php package ahmadyousefdev/automs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ahmadyousefdev/automs
More information about ahmadyousefdev/automs
Files in ahmadyousefdev/automs
Package automs
Short Description An auto management system model generator
License MIT
Homepage https://github.com/ahmadyousefdev/automs
Informations about the package automs
Automs
This tool allows you to create a fully functional component for Laravel using its Jetstream dashboard by one line. Watch this video to see how you can install it and how it works.
Requirements
Automs requires 3 main packages in order to work properly
- Laravel framework
^8
- laravel jetstream
^2
- livewire
^2
Installation
Via Composer
We included Jetstream
and livewire
in the composer installer
you have to complete the installation of these two packages by running these commands
to learn more about Jetstream
and Livewire
and how to install them properly please go to this link.
Usage
basically, you will write the desired model name and this package will generate it by running this command
After that you can check the migration file and if everything is alright you should run
Example
Let's create a component named Article
, we will do that by just writing this command
if we run this command, the package will generate the next files
and it will add those routes to routes/web.php
:
and will add a navigation link for this model to resources/views/navigation-menu.blade.php
Those files will either be filled with data or they will have the minimal look, depending on the name of the article, please read How does it work
section for more details
How does it work ?
This package have a set of built-in laravel component definitions that are connected to multiple names. When running the command, the package will search for the name of the written model in its component list. If it finds that name, it will generate its files. If it didn't find any component, it will generate the files but without the fillables and the migration rows.
A full list of the built-in components can be found inside this json file
Notes
if there is a file uploader in any component, it will use the default public disk as a storage. go to your config/filesystems.php
to configure the storage, or if you are comfortable with the existing settings you can run php artisan storage:link
to connect the public path to the storage path.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
Acknowledgements
Influencer References
These two packages inspired us to make this package and they provide much more commands which makes them suitable for more complex applications. Sadly, they don't support Laravel 8 or Jetstream yet.
All versions of automs with dependencies
laravel/jetstream Version ^2.1
livewire/livewire Version ^2.0