laractions 0.1.0

Actions for Laravel Rust: encapsulate business logic in classes that run now or on the queue.
Documentation
use laractions::action;
use serde::{Deserialize, Serialize};

use {{ modelFullName }};

#[derive(Debug, Default, Serialize, Deserialize)]
pub struct {{ class }} {
    #[serde(skip)]
    #[allow(dead_code)]
    {{ modelVariable }}: Option<{{ modelName }}>,
}

#[action(model = {{ modelName }})]
impl {{ class }} {
    async fn handle(&self) -> laravel::Result<()> {
        // Implement action logic for {{ modelVariable }} here

        Ok(())
    }
}