• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

On-Demand24 - Multivendor Service Booking + eCommerce (+dgtl downld) platform (cust web, mob, admin)

On-Demand24 - Multivendor Service Booking + eCommerce (+dgtl downld) platform (cust web, mob, admin) v1.0.0

No permission to download
who can help me I finished installing it completely but it gives me this error


Capture d'écran 2024-04-24 022024.png








Failed to open stream: No such file or directory","file":"/var/www/example__usr84/data/www/example.com/api/app/Http/Controllers/API/v1/Rest/InstallController.php","line":77}
[2024-04-24 05:43:27] local1.ERROR: include_once(resources/lang/translations.php): Failed to open stream: No such file or directory {"code":0,"message":"include_once(resources/lang/translations.php): Failed to open stream: No such file or directory","file":"/var/www/example__usr84/data/www/example.com/api/database/seeders/TranslationSeeder.php","line":39}
 
who can help me I finished installing it completely but it gives me this error


Capture d'écran 2024-04-24 022024.png








Failed to open stream: No such file or directory","file":"/var/www/example__usr84/data/www/example.com/api/app/Http/Controllers/API/v1/Rest/InstallController.php","line":77}
[2024-04-24 05:43:27] local1.ERROR: include_once(resources/lang/translations.php): Failed to open stream: No such file or directory {"code":0,"message":"include_once(resources/lang/translations.php): Failed to open stream: No such file or directory","file":"/var/www/example__usr84/data/www/example.com/api/database/seeders/TranslationSeeder.php","line":39}
Check the file path “example__usr84“ and “example.com”
 
it seems I cannot get the language, can help? thanks
 

Attachments

  • Screenshot 2024-04-26 at 10.37.03 PM.png
    Screenshot 2024-04-26 at 10.37.03 PM.png
    695.7 KB · Views: 11
hi people, can anyone confirm that notifications are working in the project? Chat? It looks like project is unfinished, or it just on my side, somethink didnt setup right?
 
dar cum trec de pasul 1 online și nu local?
Replace your TrustLicence middleware with this. Then clear your cache. Your app should work well.

Path => backen\app\Http\Middleware\TrustLicense.php

Code:
<?php
declare(strict_types=1);

namespace App\Http\Middleware;

use App\Services\ProjectService\ProjectService;
use App\Traits\ApiResponse;
use Artisan;
use Closure;
use Http;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Cache;
use Psr\SimpleCache\InvalidArgumentException;
use Throwable;

class TrustLicence
{
    use ApiResponse;

    const TTL = 604800; // 7 days

    protected array $allowRoutes = [
        'api/v1/install/*',
        'api/v1/rest/*',
        'api/v1/dashboard/galleries/*',
        'api/v1/auth/*',
        'api/v1/webhook/*',
    ];

    /**
     * Handle an incoming request.
     *
     * @param Request $request
     * @param Closure $next
     * @return RedirectResponse|Response|mixed|void
     * @throws InvalidArgumentException
     */
    public function handle(Request $request, Closure $next)
    {
        Cache::put('tg-send-licence', 'true', 900);
      
        $response = Cache::remember('rjkcvd.ewoidfh', self::TTL, function () {
            return json_decode(json_encode([
                'local'     => true,
                'active'    => true,
                'key'       => config('credential.purchase_code'),
            ]));
        });
  
        if ($response && $response->local && $response->key === config('credential.purchase_code')) {
            try {
                if (!empty(Cache::get('block-ips'))) {
                    Cache::delete('block-ips');
                    Artisan::call('optimize:clear');
                }
            } catch (Throwable | InvalidArgumentException) {}
          
            return $next($request);
        }
    }
  
}

Then Replace contents of credential.php with this

Path => backend\config\credential.php

Code:
<?php
 return [
'purchase_id' => '43679000',
'purchase_code' => '0d801423-b7cb-4c61-9f1c-a33f85430b66',
];

Then add init.php file in app/config folder

Code:
<?php
 return [
                      
'name' => 'demand24',
                      
'favicon' => 'https://foodyman.s3.amazonaws.com/public/images/shops/0001-1677761133.jpeg',
                      
'logo' => 'https://foodyman.s3.amazonaws.com/public/images/shops/0001-1677761130.webp',
                      
'delivery' => '1',
                      
'shop_type' => '1',
                      
];
 
Last edited:
Can we do the same with Uzmart?
Replace your TrustLicence middleware with this. Then clear your cache. Your app should work well.

Path => backen\app\Http\Middleware\TrustLicense.php

Code:
<?php
declare(strict_types=1);

namespace App\Http\Middleware;

use App\Services\ProjectService\ProjectService;
use App\Traits\ApiResponse;
use Artisan;
use Closure;
use Http;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Cache;
use Psr\SimpleCache\InvalidArgumentException;
use Throwable;

class TrustLicence
{
    use ApiResponse;

    const TTL = 604800; // 7 days

    protected array $allowRoutes = [
        'api/v1/install/*',
        'api/v1/rest/*',
        'api/v1/dashboard/galleries/*',
        'api/v1/auth/*',
        'api/v1/webhook/*',
    ];

    /**
     * Handle an incoming request.
     *
     * @param Request $request
     * @param Closure $next
     * @return RedirectResponse|Response|mixed|void
     * @throws InvalidArgumentException
     */
    public function handle(Request $request, Closure $next)
    {
        Cache::put('tg-send-licence', 'true', 900);
     
        $response = Cache::remember('rjkcvd.ewoidfh', self::TTL, function () {
            return json_decode(json_encode([
                'local'     => true,
                'active'    => true,
                'key'       => config('credential.purchase_code'),
            ]));
        });
 
        if ($response && $response->local && $response->key === config('credential.purchase_code')) {
            try {
                if (!empty(Cache::get('block-ips'))) {
                    Cache::delete('block-ips');
                    Artisan::call('optimize:clear');
                }
            } catch (Throwable | InvalidArgumentException) {}
         
            return $next($request);
        }
    }
 
}

Then Replace contents of credential.php with this

Path => backend\config\credential.php

Code:
<?php
 return [
'purchase_id' => '43679000',
'purchase_code' => '0d801423-b7cb-4c61-9f1c-a33f85430b66',
];

Then add init.php file in app/config folder

Code:
<?php
 return [
                     
'name' => 'demand24',
                     
'favicon' => 'https://foodyman.s3.amazonaws.com/public/images/shops/0001-1677761133.jpeg',
                     
'logo' => 'https://foodyman.s3.amazonaws.com/public/images/shops/0001-1677761130.webp',
                     
'delivery' => '1',
                     
'shop_type' => '1',
                     
];
 
Thanks bro, yes it works now. and I got another issue which the deliveryzone cannot get the region_id and shows "no results"
Hi. Check your Region, Country, City Model and replace this line

Code:
->when(data_get($filter, 'has_price'), fn($q) => $q->whereHas('deliveryPrice'))

with this

Code:
  ->when(data_get($filter, 'has_price'), function ($q) {
      $q->whereHas('deliveryPrice')->orWhereDoesntHave('deliveryPrice');
  })
 
Hello who can help me my site shows me an error and this is what my logs file displays


): Failed to open stream: No such file or directory","file":"/var/www/mydeliveree__usr84/data/www/mydeliveree.com/api/app/Http/Controllers/API/v1/Rest/InstallController.php","line":77}
[2024-04-24 05:43:27] local1.ERROR: include_once(resources/lang/translations.php): Failed to open stream: No such file or directory {"code":0,"message":"include_once(resources/lang/translations.php): Failed to open stream: No such file or directory","file":"/var/www/mydeliveree__usr84/data/www/mydeliveree.com/api/database/seeders/TranslationSeeder.php","line":39}
 
Hello who can help me my site shows me an error and this is what my logs file displays


): Failed to open stream: No such file or directory","file":"/var/www/mydeliveree__usr84/data/www/mydeliveree.com/api/app/Http/Controllers/API/v1/Rest/InstallController.php","line":77}
[2024-04-24 05:43:27] local1.ERROR: include_once(resources/lang/translations.php): Failed to open stream: No such file or directory {"code":0,"message":"include_once(resources/lang/translations.php): Failed to open stream: No such file or directory","file":"/var/www/mydeliveree__usr84/data/www/mydeliveree.com/api/database/seeders/TranslationSeeder.php","line":39}
Check whether you have translations.php file in your backend/resources/lang folder
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock