Category: Laravel, PHP

Rinvex Widgets is a powerful and easy to use widget system, that combines the both power of code logic and the flexibility of template views. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

The basic content of a widget is as follows: All widgets MUST extend the Rinvex\Widgets\Models\AbstractWidget, and MUST have a public make method, you can return whatever you want from inside that method, with complete freedom and full flexbility to write your own logic and return your results whether it's pure data array/json, or rendered view or whatever.

You can order widgets inside each group, and you can imagine widget groups as a CMS columns, that way you can structure your page the way you want. To render a widget group and print the output you can do the following: Or using blade syntax: And if you want to get all your widget groups collection, you can do so as follows: Notes: You can set a separator that will be display between widgets inside the same group as follows: You can also wrap each widget in a group using wrap method like that.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners