PHP code example of webx-ui / module-services
1. Go to this page and download the library: Download webx-ui/module-services library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webx-ui / module-services example snippets
Service::query()->visible()->orderedIn($category->id)->get(); // one category's order
Service::query()->visible()->orderedIn()->get(); // the whole list
bash
php artisan webx:routes:rebuild --type=service --type=service-category
bash
php artisan vendor:publish --tag=webx-services-views
blade
@foreach (services()->in('implants')->except($service)->take(6) as $card)
<a href="{{ $card['url'] }}">{{ $card['title'] }}</a>
@endforeach