Skip to content

egooktafanda97/talium_attribute-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manual Install

composer

//app.php
"talium_attribute/laravel": "dev-main",
"repositories": [{
        "type": "path",
        "url": "./package/*"
}],

TaliumAttributes\Provider\TaliumAttributesServiceProvider::class

php artisan router-attribute:push

Contoh Controller

use TaliumAttributes\Collection\Controller\RestController;
use TaliumAttributes\Collection\Rutes\Get;
use TaliumAttributes\Collection\Rutes\Group;
use TaliumAttributes\Collection\Rutes\Name;
use TaliumAttributes\Collection\Rutes\Post;

#[RestController()] // api | #[Controller()] // web
#[Group(["name" => "x", "prefix" => "x"])]
#[Name("x")]
class XController extends Controller
{
    public function __construct()
    {
    }

    #[Get("")]
    public function index(Request $requests)
    {
        return view('page');
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages