mphpmaster/style-attribute

Laravel HTML style attribute builder

dev-main 2021-12-24 00:36 UTC

This package is auto-updated.

Last update: 2024-10-24 07:14:42 UTC


README

Installation:

composer require mphpmaster/style-attribute

Composer Commands:

  • composer a:routes Use artisan route:list and write the output to routes.txt.

  • composer c:c Use artisan to clear cache, route, config and view files.

  • composer m:c Create sessions, views and sessions directories in storage/framework then chomd storage/framework 775 for the user as owner.

Example :

  $p = app('style-attribute')
        ->cursor('pointer', true)
        ->backgroundColor('var(--primary)', true);

  dd( "<label style='{$p}'>Label</label>" );

License

The Laravel framework is open-sourced software licensed under the MIT license.

The Laravel HTML style attribute builder is open-sourced software licensed under the MIT license.