ardhan/laravel-simple-html

There is no license information available for the latest version (v0.6-alpha) of this package.

Membuat html melalui controller dengan lebih mudah

v0.6-alpha 2020-08-13 01:11 UTC

This package is auto-updated.

Last update: 2024-09-13 11:02:57 UTC


README

Membuat HTML tanpa harus berpindah dari controller.

Package ini akan membantu anda untuk membuat html melalui controller.

Cara Installasi

composer require ardhan/laravel-simple-html

Contoh Penggunaan

<?php
namespace App\Http\Controllers;

use Page;
use Element;

class PageController extends Controller{
  function halaman()
  {
    $page = Page::author('Ardhan Wahyu Rahmanu')->description('ini adalah halaman')->title('Halaman');
    $div = Element::div('ini adalah div')->cls('attribut_kelas')->id('attribut_id');
    $page->content($div);
    
    echo $page;
  }
}

Meta

Ardhan Wahyu Rahmanu – https://rahmanu.comardhan.matematika@gmail.com

https://github.com/ardhan/