Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About mstdmstdd

  • Rank
    Regular Member
  1. Hello, Having Laravel Framework 5.5.40 I need to import data from Magento 1.9 I found this https://github.com/michaelkmartin/laravel-magento-integration plugin Bit it is Compatible with Laravel 4 only. I tried to install it and got errors: $ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package tinyrocket/magento 1.0.* is satisfiable by tinyrocket/magento[1.0.x-dev] but these conflict with your requirements or minimum-stability. Can you advice some Compatible with Laravel 5.5 tool ? Thanks!
  2. Hello , In my laravel 5.6.20 application I created new testing file tests/Browser/documentCategoriesCRUD.php: <?php namespace Tests\Browser; use Auth; use DB; use Tests\DuskTestCase; use Laravel\Dusk\Browser; use Illuminate\Foundation\Testing\DatabaseMigrations; use PhpUnit\Framework; // vendor/phpunit/phpunit/src/Framework/Assert.php use Tests\TestCase; use App\User; use App\Settings; use App\DocumentCategory; class documentCategoriesCRUDTest_prior extends DuskTestCase { /** * A Dusk test example. * * @return void */ public function testExample() // php artisan dusk tests/Browser/documentCategoriesCRUD.php { $logged_user_id = 5; // There is user in userrs table in db $site_name = Settings::getValue('site_name', ''); try { $document_category_id= ''; $this->browse(function (Browser $browser) use ($site_name, $document_category_id, $logged_user_id) { $browser->resize(1920, 1080); // Width and Height $new_document_category_name = 'new document category created at ' . time(); $browser->loginAs(User::find($logged_user_id)) ->visit('/admin/dashboard#/admin/document_categories/edit/new') ->assertTitle('Document Categories of ' . $site_name) ; }); echo ' New document category id::'.print_r($document_category_id,true); } catch (Exception $e) { throw $e; } return; } } But I got error that page if not found and in printscreen I see login(auth model) page. I have default config/auth.php and in config/database.php: <?php return [ 'default' => env('DB_CONNECTION', 'mysql'), 'connections' => [ 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', ''), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), // THAT IS MY WORKING DB 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => 'tsk_', 'strict' => true, 'engine' => null, ], 'testing' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', ''), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DUSK_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => 'tsk_', 'strict' => true, 'engine' => null, ], To check that I connected to the db I need I read user by $logged_user_id, like: $loggedUser= User::find($logged_user_id); echo '$loggedUser->name::'.print_r($loggedUser->name,true); $browser->loginAs(User::find($logged_user_id)) and in the console name of the user with id == $logged_user_id, so I suppose, that: my testing script works under db I work with I have user with id == $logged_user_id As that are first steps with dusk I do not need any special envirement here? What did I miss in dusk config ? Thanks!
  3. Hello! In Laravel 5.6 / vuejs 2.5 application I use vue-chartjs, but my charts looks like : https://imgur.com/a/ru1dXlm I want some more: 1) having several items(artists in my case) I want to see them half-transparent, just as in first example here http://demo.vue-chartjs.org/ 2) having points with values shown as in first example at link above 3) I need to see all labels in x-direction( I fill labels parameter ) for here 4) If there source code of demo examples of link above > I searched and did not find... Thanks!
  4. Hello, Can you advice some decision(extention) to deal invalid urls in Laravel 5.5/vue.js2.5 application ? Thanks!
  5. Could you please to say your OS and Firefox version, which has “firefox's built in password manager” ? Thanks!
  6. Could,you, please, to point where “firefox's built in password manager” is located and how did you open it ? I tried to open it on my firefox and did not find it. I did not find such menu item neither in extentions: https://imgur.com/a/4uH2H ?
  7. Hello, 1) I want in Kubuntu 17 to move from Firefox to Chromium In Chromium I found the menu item “Import bookmarks and settings” It can be useful for transferring all my bookmarks from Firefox into Chromium. But how to transfer passwords? Lastpass - look not good when Ineed to transfer existing passwords? 2) I mean that if now in Firefox Lastpass is not installed, then at its installation my existing passwords will not be entered in the database Lastpass? How can I somehow? 3) I used Password Exporter ( https://addons.mozilla.org/en-US/firefox/addon/2848 ), but now I got error that Not compatible with Firefox Quantum with my Firefox Quantum 58 I tried some other plugins I found, but failed. Could you advice some plugin to export my passwords from my Firefox and to import them to Chromium ? Thank you!
  8. mstdmstdd

    How to use laravel in vuejs admin dasboard

    Thank you , very interesting! 1) I suppose I can raise version of laravel / vue.js by console commands ? 2) Looks it is different admin dashboard I selected at 1st message?
  9. Hello, I am interested in this admin dasboard https://github.com/wxs77577/adminify and after installing I have a project with structure $ ls -l total 237 drwxrwxrwx 1 root root 4096 лют 17 13:31 build drwxrwxrwx 1 root root 0 лют 17 13:31 config -rwxrwxrwx 1 root root 324 лют 17 13:31 CONTRIBUTING.md -rwxrwxrwx 1 root root 803 лют 17 13:31 index.html -rwxrwxrwx 1 root root 1087 лют 17 13:31 LICENSE drwxrwxrwx 1 root root 131072 лют 17 13:34 node_modules -rwxrwxrwx 1 root root 2678 лют 17 13:31 package.json drwxrwxrwx 1 root root 0 лют 17 13:31 public -rwxrwxrwx 1 root root 6645 лют 17 13:31 README.md drwxrwxrwx 1 root root 4096 лют 17 13:31 screenshots drwxrwxrwx 1 root root 4096 лют 17 13:32 src drwxrwxrwx 1 root root 0 лют 17 13:31 static -rwxrwxrwx 1 root root 75607 лют 17 13:31 WechatGroup.png If there is a way to use/install laravel 5 for API of this crud? I would like to use asll the power of laravel 5 (controls, models,migrations etc...). If yes, which step have I to do ? Thanks!
  10. mstdmstdd

    Get weather information from yahooapis

    Can you advice some well documented API with hourly forecast ?
  11. Hello, I want ot get weather information from yahooapis and I do like $BASE_URL = "http://query.yahooapis.com/v1/public/yql"; $yql_query = 'select wind from weather.forecast where woeid in (select woeid from geo.places(1) where text="chicago, il")'; $yql_query_url = $BASE_URL . "?q=" . urlencode($yql_query) . "&format=json"; // Make call with cURL $session = curl_init($yql_query_url); curl_setopt($session, CURLOPT_RETURNTRANSFER,true); $json = curl_exec($session); // Convert JSON to PHP object $phpObj = json_decode($json); var_dump($phpObj); I got this sample from https://developer.yahoo.com/weather/#php It works ok for location I set in current time, what I did not find if this API gives possibility get data in next hours(days) ? If yes, please give ref ti this description... Also I created Consumer Key and Secret for my account, but in this example I do not use it... Thanks!
  12. mstdmstdd

    To move from Mysql into Posgres?

    Hello, If there is some tools to move data of related tables with data from Mysql into Posgres? I know usefull option if to use dumping: mysqldump --compatible=postgresql But are there some pipelines for this? If this pipeline is able to create tables in destination db by source db - that would be great! Thanks!
  13. Hello, I still search for a decision, as I still have an error: This driver does not support retrieving URLs. when I try to get shared url of uploaded file. I created a small application, repeating the error I have. Public url: https://www.dropbox.com/s/rmclue63tyeyu1w/dropbox_demo.zip?dl=0 Under url there is “Run drop box” menu item and clicking on it the routing would be run. I output to the console all related variables. I hardcoded app's key/secret in the HomeController.php and in the config/app.php files. If there is no error in the code, please, try to run under your dropbox creditials. Could it be misconfiguration on dropbox side of my account? Thank you for your time!
  14. Yes, I run composer update and followed this article and in my model: <?php namespace App; use Illuminate\Database\Eloquent\Model; use Auth; use Intervention\Image\Facades\Image as Image; use Carbon\Carbon; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; use League\Flysystem\Filesystem; use Spatie\Dropbox\Client; use Spatie\FlysystemDropbox\DropboxAdapter; ... class TmpCsvp extends MyAppModel { ... public static function setToIsApplied($id,bool $to_copy, $to_employee_id) { ... $dropboxClient = new Client(env('DROPBOX_OATH')); $adapter = new DropboxAdapter($dropboxClient); $filesystem = new Filesystem($adapter); echo '<pre>$filesystem::'.print_r($filesystem,true).'</pre>'; // The output is League\Flysystem\Filesystem Object class echo '<pre>$dropboxClient::'.print_r($dropboxClient,true).'</pre>'; // The output is Spatie\Dropbox\Client Object $uploaded = $filesystem->put($dest_dropbox_file_name, $file, []); echo '<pre>$uploaded::'.print_r($uploaded,true).'</pre>'; // The output is 1 $exists = Storage::disk('dropbox')->exists($dest_dropbox_file_name); echo '<pre>$exists::'.print_r($exists,true).'</pre>'; $url = Storage::disk('dropbox')->url($dest_dropbox_file_name); // THAT LINE RAISE EXCEPTION echo '<pre>$url::'.print_r($url,true).'</pre>'; That is error page output: https://imgur.com/a/HpE4M But file was uploaded to the directory/filename in $dest_dropbox_file_name like “docs/-doc-130/lender_image_1.jpg” My composer.json : { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=7.0.0", "doctrine/dbal": "^2.5", "fideloper/proxy": "~3.3", "intervention/image": "^2.4", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0", "maatwebsite/excel": "~2.1.0", "mcamara/laravel-localization": "^1.3", "rcrowe/twigbridge": "^0.9.5", "sebastiansulinski/dotenv": "^2.0", "sebastiansulinski/php-backup": "^2.0", "spatie/flysystem-dropbox": "^1.0", "spatie/laravel-backup": "^3.0.0" }, "require-dev": { "filp/whoops": "~2.0", "fzaninotto/faker": "~1.4", "mockery/mockery": "~1.0", "phpunit/phpunit": "~6.0" }, "autoload": { "classmap": [ "database/seeds", "database/factories" ], "psr-4": { "App\\": "app/" } }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "extra": { "laravel": { "dont-discover": [ ] } }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate" ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true } } What wrong in my configuraion/code? Thanks!
  15. Hello, In laravel 5.5 application I need to upload file to dropbox and get shared link to this file. I used DropboxAdapter library and this doc https://murze.be/dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application And looking at this doc https://laravel.com/docs/5.5/filesystem#retrieving-files I managed to put a file to dropbox storage ok, but failed to get its url. I did like : $exists = Storage::disk('dropbox')->exists($dest_dropbox_file_name); echo '<pre>$exists::'.print_r($exists,true).'</pre>'; // Value is 1 $url = Storage::disk('dropbox')->url($dest_dropbox_file_name); echo '<pre>$url::'.print_r($url,true).'</pre>'; I got error: RuntimeException This driver does not support retrieving URLs. Which is the right way to get shared url of uploaded filr to dropbox? Who used this library ? Thanks!

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.