danilchican

Member Since 1 Year Ago

Experience Points
4,820
Total
Experience

180 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
43
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 1
4,820 XP
Jan
04
1 week ago
Activity icon

Replied to Cannot Execute API Call To Another Laravel Website

file_get_contents() returns the same error. And when I open the link in browser it works fine.

Activity icon

Started a new Conversation Cannot Execute API Call To Another Laravel Website

Hi everyone!

Today I was trying to execute API call with Guzzle to another service. But the problem is that if I do the request locally to that service, it works fine. it should be mentioned that when the service was at Modx such error still reproduced. Currently service is replaced by Laravel app.

But when I do the request from the dev server if fails with following error:

`GET http://mysite.com/api/v1/products?codes=1` resulted in a `415 Unsupported Media Type` response:


production.ERROR: #0 /home/..../vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /home/..../vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /home/.../vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)

The following response headers present:

{"responseHeaders":{"Date":["Mon, 04 Jan 2021 10:43:42 GMT"],"Content-Type":["application/octet-stream"],"Transfer-Encoding":["chunked"],"Connection":["close"],"Server":["imunify360-webshield/1.13"]},"responseProtocol":"1.1"}

Can anyone help me?

Dec
22
3 weeks ago
Activity icon

Replied to Laravel Intervention/Image: Unable To Init From Given Binary Data.

I have found the root cause of the issue. The problem is not reproduced on Stage environment. It's reproduced only in local env. The expected root cause is that there are no image formats installed locally to recognize.

Activity icon

Replied to Laravel Intervention/Image: Unable To Init From Given Binary Data.

file_exists doesn't work for file provided by url

Activity icon

Replied to Laravel Intervention/Image: Unable To Init From Given Binary Data.

If I'm trying to use Image::make($request->file('image')) then I get the error like Unable to read image from path (D:\...\tmp\phpD64B.tmp)

Dec
21
3 weeks ago
Activity icon

Started a new Conversation Laravel Intervention/Image: Unable To Init From Given Binary Data.

Hi everyone! I faced with the issue when I tried to use laravel intervention/image package. I have a Service class which have method with following logic e.g.:

        return Image::make($imageUrl);

And I have console command which calls the service method. The problem is that if I execute artisan custom command everything is ok. But when I try to use this service inside controller it fails with the following error:

Intervention\Image\Exception\NotReadableException
Unable to read image from binary data.

Intervention\Image\Imagick\Decoder::initFromBinary
...\mysite.local\vendor\intervention\image\src\Intervention\Image\Imagick\Decoder.php:90

$imageUrl is equal to http://somesite.com/image.jpg.

Can you help me with that? No idea what happens.

Nov
17
1 month ago
Activity icon

Started a new Conversation Resources Compilation Error.

Hi everyone! I just started to use fresh Laravel 8.x with OOTB Mix Asset Management and tailwind.

The problem has been happen when I tried to compile additional .scss resources with sass(). With .css files as I thought no any problems. Error exists in console but .scss will be compiled into css successfully.

My code:

mix
    .js('resources/js/app.js', 'public/js')
    .sass('resources/css/template.scss', 'public/css/template.css') // here
    .postCss('resources/css/app.css', 'public/css', [
        require('postcss-import'),
        require('tailwindcss'),
    ]);

The error:

ERROR in multi ./resources/js/app.js ./resources/css/template.scss ./resources/css/app.css
Module not found: Error: Can't resolve 'd:\mypathhere\resources\css\app.scss' in 'd:\mypathhere'
 @ multi ./resources/js/app.js ./resources/css/template.scss ./resources/css/app.css /js/app[1]

How to fix it? I want to use tailwind and sass(). But it can't work together.

I think the same issue here: https://stackoverflow.com/questions/60696756/tailwind-laravel-mix-module-not-found-error-cant-resolve-scss-file

Nov
16
2 months ago
Activity icon

Replied to How To Prioritise Routes Properly?

yep. I have chosen last option to separate inside controller method and show different views due to my catalogPath has infinite category slugs

Activity icon

Replied to How To Prioritise Routes Properly?

It always goes to showProduct() instead

Activity icon

Started a new Conversation How To Prioritise Routes Properly?

Hi everyone!

I have two routes:

  1. /catalog/cat-1/sub-cat-2/...../sub-sub-cat.html
  2. /catalog/cat-1/sub-cat-2/.../product-code.html.

But there is a problem: showCategory() always got. How to fix it?

The structure of the route the same, but how can I navigate to showProduct() instead for the second case?

Route::get('/catalog/{catalogPath}.html', [CatalogController::class, 'showCategory'])
        ->where('catalogPath', '[a-zA-Z0-9/_-]+')
        ->name('category.show');
Route::get('/catalog/{catalogPath}/{productCode}.html', [CatalogController::class, 'showProduct'])
        ->where('catalogPath', '[a-zA-Z0-9/_-]+')
        ->where('productCode', '[a-zA-Z0-9_-]+')
        ->name('product.show');
Nov
07
2 months ago
Activity icon

Started a new Conversation Composer. Could Not Scan For Classes

Hi everyone! Could anyone help me with the following issue.

OS: Windows 10. Composer: 2.0.6

After running composer install command the error below was thrown:

92 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package zendframework/zend-escaper is abandoned, you should avoid using it. Use laminas/laminas-escaper instead.
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files

                                                                                                                                                
  [RuntimeException]                                                                                                                            
  Could not scan for classes inside "D:\wamp64\www\myproject\vendor/setasign/fpdf/fpdf.php" which does not appear to be a file nor a folder

Everything worked fine on Win 7. Maybe of the reason of having cache.

Nov
04
2 months ago
Activity icon

Started a new Conversation General Architecture Of Web Application

Hi there!

The main question is what layers can be for Laravel true web-application?

For example, the general architecture for Java web-applications is:

  1. Filters layer
  2. Controllers layer
  3. Facades layer
  4. Services layer
  5. Converters/Populators layer
  6. DTOs layer
  7. DAOs layer

But I haven't any idea is it true to have Converters/Populators with DTOs or no, etc..