PHP code example of globalxtreme / laravel-backend-service
1. Go to this page and download the library: Download globalxtreme/laravel-backend-service 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/ */
globalxtreme / laravel-backend-service example snippets
return [
'prefix' => [
// Base uri for website application
'web' => env('BASE_WEB_PREFIX', 'web'),
// Base uri for mobile application
'mobile' => env('BASE_MOBILE_PREFIX', 'mobile'),
],
'namespace' => [
// Base namespace for website application
'web' => env('BASE_WEB_NAMESPACE', 'Web'),
// Base namespace for mobile application
'mobile' => env('BASE_MOBILE_NAMESPACE', 'Mobile'),
]
];
class TestingNumber extends BaseNumber
{
/**
* @var string
*/
protected static string $prefix = "TXT"; // Your prefix number (code)
/**
* @var Model|string|null
*/
protected Model|string|null $model = null;
// Add this function if you have a custom format.
public static function generate(): string {
// Your custom format
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.