Chron

Chron

Member Since 1 Year Ago

Experience Points
13,550
Total
Experience

1,450 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
27
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.

Level 3
13,550 XP
Mar
18
2 weeks ago
Activity icon

Started a new Conversation Is There A Way To Debug Events And Listener?

I'm working on a email verification and whenever I queue:work, I just see failed jobs. Is there a way to determine where are they coming from, like it tells what line num it is or something?

Activity icon

Started a new Conversation Globally Install Specific Version Of Laravel

Is there a way to globally install only the 5.8.* version of laravel?

I tried composer global require laravel/installer=5.8.* but I'm getting an error Could not find package laravel/installer in a version matching 5.8.*

Mar
17
2 weeks ago
Activity icon

Started a new Conversation Npm Error

After running npm run dev, I got this error.

ERROR in ./resources/js/app.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /home/user/my-project/node_modules/@babel/helper-compilation-targets/package.json

Is there a way to fix this?

Activity icon

Started a new Conversation Version Of Packages In Composer.json

Is there a way to remove all the composer package and install those package that has a version of whatever is in composer.json?

Mar
12
3 weeks ago
Activity icon

Replied to Is There A Way To Remove All The Html Tags?

Hmmm.. I changed my mind, Now, I want to replace all the consecutive with a single break, so I made a mutator. I forgot to include \r though. May I know if this is just fine?

public function getDescriptionAttribute($value) {
   return Purifier::clean($value);
}

public function getCleanDescriptionAttribute() {;
   return preg_replace('/(\n){1,}/m', '<br />', stripcslashes(strip_tags($this->description)));
}

{!!  $post->clean_description !!}
//"hello.<br/>count(): Parameter must be an array or an object that implements Countable<br/>"
Mar
11
3 weeks ago
Activity icon

Replied to Is There A Way To Remove All The Html Tags?

@sinnbeck

Here's the example string

{{  $post->description  }}
//<p>hello.</p>\n<p>count(): Parameter must be an array or an object that implements Countable<br><br><br></p>\n

{{ nl2br(strip_tags($post->desc)) }}
//hello.\ncount(): Parameter must be an array or an object that implements Countable\n

@snapey

does the string contain the newline characters 0x0d/0x0a or are they only present as \n \r when you dump the string?

It only contains "\n \r"

@siangboon

Do your own regular expression to replace the characters with empty string since you had remove all the HTML tags

Yeah that is my last resort. When I saw the n2lbr, I thought it would work in laravel, since it worked when I tested it in a php sandbox.

Activity icon

Replied to Is There A Way To Remove All The Html Tags?

Yes @sinnbeck , I tried {{ nl2br(strip_tags($post->desc)) }} but it doesn't work. The "\n" Is still there.

Activity icon

Replied to Is There A Way To Remove All The Html Tags?

js escape characters like \n, \t, etc. Is there a php function that remove the escape character and convert it to a newline?

Activity icon

Replied to Is There A Way To Remove All The Html Tags?

Oh yeah, but it doesn't remove the escape characters though. Are there functions that also removes escape characters?

Activity icon

Started a new Conversation Is There A Way To Remove All The Html Tags?

I'm using mews/purifier for cleaning records before inserting them. Now, I want to clean the record by leaving all the text that are not wrapped with an html tag before rendering them. Is there a way to do that?

Mar
10
3 weeks ago
Activity icon

Replied to Function Not Defined

It's at the end of the body.

Activity icon

Started a new Conversation Function Not Defined

I have this simple function in my app.js:

function myTest() {
	console.log('test');
}

I get a function not defined error when I call it.

<button onclick="myTest()">Button</button>

But it works when I place it right under the <script src="{{ asset('js/app.js') }}"></script>

Is there a way to fix this?

Here is my webpack:

const mix = require('laravel-mix');

 mix
 .js('resources/js/app.js', 'public/js')
 .sass('resources/sass/app.scss', 'public/css');

 mix.webpackConfig({
 	node: {
 		fs: "empty"
 	}
 });
Mar
09
3 weeks ago
Activity icon

Started a new Conversation Is There A Way To Preview The Blade Used For Mail?

Is there a way to view the mail in the browser? It's better than making multiple request to the mailing service when you're just debugging the output.

Mar
08
3 weeks ago
Activity icon

Started a new Conversation Normalizing Tables

I want to know if I still have to normalize the days column or I should leave it in schedules table.

img

Mar
06
3 weeks ago
Activity icon

Started a new Conversation Is There A Way To Check If The Combination Of Id Is Unique?

I have these tables; toys, toy_type, type and factories.

The toy_type has these columns; id. toy_id, type_id. The factories has these columns; id, toy_type_id, name ..etc.

Before adding the id of the toy_type in factories, I want to make sure if that combination of toy_id and type_id is unique. Is there a way to check that?

Activity icon

Replied to Pivot As A Model?

Thanks!

Activity icon

Started a new Conversation Pivot As A Model?

I have these tables; toys, types, toy_type, factories

I want the toy_type to have a 1:m relationship to factories.

Is there a way to achieve this? So that when I query:

Factory::with('toy_type')->get();

I get the factories, the pivot ids from toy_type, and the data from toys and types.

Mar
05
4 weeks ago
Activity icon

Started a new Conversation Is There A Way To Make A Composite Key?

I only know how to make the keys into foreign.

I'm planning to make toy_id and brand_id into a composite key. Is there a way to make one in laravel? And when I query a record using it, is it the same way as querying any other records?

Schema::create('factories', function (Blueprint $table) {
            $table->unsignedBigInteger('toy_id');
            $table->foreign('toy_id')->references('id')->on('toys')->onDelete('cascade');
            $table->unsignedBigInteger('brand_id');
            $table->foreign('brand_id')->references('id')->on('brands')->onDelete('cascade');
});
Feb
18
1 month ago
Activity icon

Started a new Conversation Update Record With Options

Whenever I update record that has choices, should I just query all the records of a model?

Eg. If I update a toy's manufacturer, there's an option that has a list of manufacturers of toys. Should I just call Manufacturer::all() then just run a loop that has checks if the id from Manufacturer::all() is equal to the id given by the toy's manufacturer ($toy->manufacturer->id)?

Feb
17
1 month ago
Activity icon

Awarded Best Reply on Trying To Access Array Offset On Value Of Type Null

I just edited the required version of php in composer.json to ^7.4.1 and it worked. No need to update laravel and downgrade php since my OS already has installed php v7.4.1.

Activity icon

Replied to Trying To Access Array Offset On Value Of Type Null

I just edited the required version of php in composer.json to ^7.4.1 and it worked. No need to update laravel and downgrade php since my OS already has installed php v7.4.1.

Activity icon

Started a new Conversation Error Updating Laravel From 5.8 To 6.0

I'm having this error:

>> 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
    - Conclusion: remove coreproc/laravel-notification-channel-globe-labs-sms 0.3.0
    - Conclusion: don't install laravel/framework v6.15.1
    - Conclusion: don't install laravel/framework v6.15.0
    - Conclusion: don't install laravel/framework v6.14.0
    - Conclusion: don't install laravel/framework v6.13.1
    - Conclusion: don't install laravel/framework v6.13.0
    - Conclusion: don't install laravel/framework v6.12.0
    - Conclusion: don't install laravel/framework v6.11.0
    - Conclusion: don't install laravel/framework v6.10.1
    - Conclusion: don't install laravel/framework v6.10.0
    - Conclusion: don't install laravel/framework v6.9.0
    - Conclusion: don't install laravel/framework v6.8.0
    - Conclusion: don't install laravel/framework v6.7.0
    - Conclusion: don't install laravel/framework v6.6.2
    - Conclusion: don't install laravel/framework v6.6.1
    - Conclusion: don't install laravel/framework v6.6.0
    - Conclusion: don't install laravel/framework v6.5.2
    - Conclusion: don't install laravel/framework v6.5.1
    - Conclusion: don't install laravel/framework v6.5.0
    - Conclusion: don't install laravel/framework v6.4.1
    - Conclusion: don't install laravel/framework v6.4.0
    - Conclusion: don't install laravel/framework v6.3.0
    - Conclusion: don't install laravel/framework v6.2.0
    - Conclusion: don't install laravel/framework v6.1.0
    - Conclusion: don't install laravel/framework v6.0.4
    - Conclusion: don't install laravel/framework v6.0.3
    - Conclusion: don't install laravel/framework v6.0.2
    - Conclusion: don't install laravel/framework v6.0.1
    - Installation request for coreproc/laravel-notification-channel-globe-labs-sms ^0.3.0 -> satisfiable by coreproc/laravel-notification-channel-globe-labs-sms[0.3.0].
    - Conclusion: don't install laravel/framework v6.0.0
    - coreproc/laravel-notification-channel-globe-labs-sms 0.3.0 requires illuminate/support ^5.3|^5.4|^5.5|^5.6 -> satisfiable by laravel/framework[v5.8.37], illuminate/support[5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - Can only install one of: laravel/framework[6.x-dev, v5.8.37].
    - don't install illuminate/support 5.5.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.6.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.7.17|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.7.18|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.7.19|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.7.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.8.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.16|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.17|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.2|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.28|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.33|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.34|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.35|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.36|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.37|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.39|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.40|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.41|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.43|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.5.44|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.1|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.10|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.11|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.12|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.13|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.14|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.15|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.16|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.17|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.19|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.2|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.20|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.21|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.22|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.23|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.24|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.25|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.26|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.27|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.28|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.29|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.3|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.30|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.31|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.32|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.33|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.34|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.35|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.36|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.37|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.38|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.39|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.4|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.5|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.6|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.7|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.8|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.6.9|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.1|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.10|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.11|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.15|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.2|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.20|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.21|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.22|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.23|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.26|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.27|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.28|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.3|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.4|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.5|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.6|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.7|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.8|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.7.9|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.11|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.12|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.14|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.15|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.17|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.18|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.19|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.2|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.20|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.22|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.24|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.27|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.28|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.29|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.3|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.30|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.31|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.32|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.33|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.34|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.35|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.36|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.4|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.8|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.8.9|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.3.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support 5.4.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.3.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.3.16|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.3.23|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.3.4|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.13|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.17|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.19|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.27|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.36|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v5.4.9|don't install laravel/framework 6.x-dev
    - Installation request for laravel/framework ^6.0 -> satisfiable by laravel/framework[6.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.10.0, v6.10.1, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.2.0, v6.3.0, v6.4.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0, v6.6.1, v6.6.2, v6.7.0, v6.8.0, v6.9.0].

Here's my composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.1.3",
        "barryvdh/laravel-snappy": "^0.4.4",
        "coreproc/laravel-notification-channel-globe-labs-sms": "^0.3.0",
        "doctrine/dbal": "^2.9",
        "fideloper/proxy": "^4.0",
        "h4cc/wkhtmltopdf-amd64": "^0.12.4",
        "intervention/image": "^2.4",
        "laravel/framework": "^6.0",
        "laravel/tinker": "^1.0",
        "laravolt/avatar": "^2.2",
        "maatwebsite/excel": "^3.1",
        "mews/purifier": "^2.1",
        "paypal/rest-api-sdk-php": "*",
        "twbs/bootstrap": "4.3.1"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "facade/ignition": "^1.4",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^3.0",
        "phpunit/phpunit": "^7.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "files": [
            "app/Helpers/AuthenticatedUserHelper.php",
            "app/Helpers/TimeHelper.php",
            "app/Helpers/ThemeHelper.php",
            "app/Helpers/CustomStringHelpers.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}
Feb
16
1 month ago
Activity icon

Started a new Conversation Trying To Access Array Offset On Value Of Type Null

I'm using Laravel 5.8 with php 7.4.

The error points at line 147 of /project/vendor/egulias/email-validator/EmailValidator/Parser/Parser.php

    protected function escaped()
    {
        $previous = $this->lexer->getPrevious();
 
 >>>>  if ($previous['type'] === EmailLexer::S_BACKSLASH
            &&
            $this->lexer->token['type'] !== EmailLexer::GENERIC
        ) {
            return true;
        }
 
        return false;
    }

Is there a way to fix this without downgrading php or upgrading laravel?

Dec
10
3 months ago
Activity icon

Started a new Conversation Are There Any Free Cross Browser Testing Tools?

I've tried browsershots.org but it is hard to sign up.

Dec
06
3 months ago
Dec
05
3 months ago
Activity icon

Replied to Problem With Carousel In Svg In Chrome

@bugsysha @sinnbeck I don't have safari or IE because I'm using linux.

I manage to find the cause. It's the backface-visibility of the carousel, whenever I change it to unset, it renders the expected output. However, when the carousel is moving, the svg gets covered again for a second. Is there a way to fix this?

Here is the fiddle.

https://jsfiddle.net/SuperSudo/4oukcpv7/16/

Activity icon

Replied to Problem With Carousel In Svg In Chrome

But why is it working in firefox?

Activity icon

Replied to Problem With Carousel In Svg In Chrome

Yes, I did and it didn't work.

Activity icon

Started a new Conversation Problem With Carousel In Svg In Chrome

Here is the code:

https://jsfiddle.net/SuperSudo/4oukcpv7/6/

svg with carousel

In firefox, the person doesn't break and the carousel respect its position while in chrome, the carousel places itself on top of the z-axis.

Is there a way to fix this?

Dec
02
4 months ago
Activity icon

Awarded Best Reply on Svg Problem

Fixed it.

The mistake I did was grouping it before doing anything else. So it should be cropping and moving first, then grouping the svg.

Activity icon

Replied to Svg Problem

Fixed it.

The mistake I did was grouping it before doing anything else. So it should be cropping and moving first, then grouping the svg.

Dec
01
4 months ago
Activity icon

Replied to Svg Problem

@amaury I was trying to move the person closer to the rectangular object but when I animate it, it goes back to the first position.

Activity icon

Replied to Svg Problem

@snapey If you have some time, you could look at this.

<!DOCTYPE html>
<html>
<head>
<style>
#person {
animation: breathe 1s ease-in-out infinite alternate;
transform-origin: bottom;
transform-box: fill-box;
}
@keyframes breathe {
    to {
transform: rotateX(15deg);
    }
}
</style>
</head>
<body>
<div>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   id="b904b1fc-2438-4085-8361-d165edf61501"
   data-name="Layer 1"
   width="1016.04774"
   height="688.3355"
   viewBox="0 0 1016.04774 688.3355"
   version="1.1"
   sodipodi:docname="vid.svg"
   inkscape:version="0.92.4 5da689c313, 2019-01-14">
  <metadata
     id="metadata1338">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <defs
     id="defs1336" />
  <sodipodi:namedview
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1"
     objecttolerance="10"
     gridtolerance="10"
     guidetolerance="10"
     inkscape:pageopacity="0"
     inkscape:pageshadow="2"
     inkscape:window-width="1366"
     inkscape:window-height="747"
     id="namedview1334"
     showgrid="false"
     inkscape:snap-center="true"
     inkscape:zoom="0.79612339"
     inkscape:cx="441.55342"
     inkscape:cy="434.28059"
     inkscape:window-x="0"
     inkscape:window-y="0"
     inkscape:window-maximized="0"
     inkscape:current-layer="b904b1fc-2438-4085-8361-d165edf61501" />
  <title
     id="title1251">tutorial_video</title>
  <rect
     y="12.305671"
     width="706.02344"
     height="412.69434"
     id="rect1299"
     x="0"
     style="fill:#3f3d56;stroke-width:1.23202837" />
  <rect
     x="35.419235"
     y="380.00217"
     width="643.44946"
     height="16.713478"
     id="rect1301"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <rect
     x="35.419235"
     y="380.00217"
     width="370.72134"
     height="16.713478"
     id="rect1303"
     style="fill:#6c63ff;stroke-width:1.23202837" />
  <polygon
     points="29.974,362.437 50.36,371.412 30,380.445 "
     id="polygon1305"
     transform="matrix(1.1806412,0,0,1.2856521,0,-121.40215)"
     style="fill:#6c63ff" />
  <rect
     x="73.199753"
     y="344.00391"
     width="8.2644882"
     height="23.141739"
     id="rect1307"
     style="fill:#6c63ff;stroke-width:1.23202837" />
  <rect
     x="89.728737"
     y="344.00391"
     width="8.2644882"
     height="23.141739"
     id="rect1309"
     style="fill:#6c63ff;stroke-width:1.23202837" />
  <path
     d="M 667.0623,333.7187 H 38.961161 V 49.589582 H 667.0623 Z M 41.322443,331.1474 H 664.70101 V 52.160887 H 41.322443 Z"
     id="path1311"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <ellipse
     cx="354.19238"
     cy="193.58263"
     id="circle1313"
     rx="55.490139"
     ry="60.425648"
     style="fill:#6c63ff;stroke-width:1.23202837" />
  <rect
     x="421.51709"
     y="148.80048"
     width="70.83847"
     height="2.5713043"
     id="rect1315"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <rect
     x="210.18231"
     y="250.36699"
     width="70.83847"
     height="2.5713043"
     id="rect1317"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <path
     d="m 518.32968,161.65698 a 10.625771,11.570869 0 1 1 10.62577,-11.57086 10.637766,11.583931 0 0 1 -10.62577,11.57086 z m 0,-20.57043 a 8.2644886,8.9995648 0 1 0 8.26449,8.99957 8.2741463,9.0100814 0 0 0 -8.26449,-8.99957 z"
     id="path1319"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <path
     d="m 518.32968,276.08002 a 10.625771,11.570869 0 1 1 10.62577,-11.57087 10.637389,11.58352 0 0 1 -10.62577,11.57087 z m 0,-20.57043 a 8.2644886,8.9995648 0 1 0 8.26449,8.99956 8.2745241,9.0104928 0 0 0 -8.26449,-8.99956 z"
     id="path1321"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <path
     d="m 556.1102,276.08002 a 10.625771,11.570869 0 1 1 10.62577,-11.57087 10.637389,11.58352 0 0 1 -10.62577,11.57087 z m 0,-20.57043 a 8.2644886,8.9995648 0 1 0 8.26449,8.99956 8.2745241,9.0104928 0 0 0 -8.26449,-8.99956 z"
     id="path1323"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <path
     d="m 480.54916,276.08002 a 10.625771,11.570869 0 1 1 10.62577,-11.57087 10.637766,11.583931 0 0 1 -10.62577,11.57087 z m 0,-20.57043 a 8.2644886,8.9995648 0 1 0 8.26449,8.99956 8.2741463,9.0100814 0 0 0 -8.26449,-8.99956 z"
     id="path1325"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <path
     d="m 180.66629,263.2235 a 10.625771,11.570869 0 1 1 10.62577,-11.57087 10.637766,11.583931 0 0 1 -10.62577,11.57087 z m 0,-20.57043 a 8.2644886,8.9995648 0 1 0 8.26449,8.99956 8.2741463,9.0100814 0 0 0 -8.26449,-8.99956 z"
     id="path1327"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <path
     d="m 142.88577,263.2235 a 10.625771,11.570869 0 1 1 10.62577,-11.57087 10.637766,11.583931 0 0 1 -10.62577,11.57087 z m 0,-20.57043 a 8.2644886,8.9995648 0 1 0 8.26449,8.99956 8.2741463,9.0100814 0 0 0 -8.26449,-8.99956 z"
     id="path1329"
     inkscape:connector-curvature="0"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <rect
     x="517.14905"
     y="171.94221"
     width="2.3612823"
     height="64.282608"
     id="rect1331"
     style="fill:#d0cde1;stroke-width:1.23202837" />
  <g
     id="person"
     transform="translate(-66)">
    <path
       id="path1269"
       transform="translate(-91.97613,-105.83225)"
       d="m 777.726,710.54921 -32.83374,-2.91855 -14.59274,48.15614 c 0,0 -9.167,12.32809 -14.39321,23.87635 a 10.29346,10.29346 0 0 0 10.554,14.43894 c 9.91519,-1.096 21.86865,-3.18147 23.53947,-6.94084 a 159.69357,159.69357 0 0 0 5.83711,-16.78168 l 8.026,5.10747 5.8371,-2.91856 3.6482,-28.4559 c 0,0 6.56674,-7.29638 0.72963,-20.42987 z"
       inkscape:connector-curvature="0"
       style="fill:#2f2e41" />
    <path
       id="path1271"
       transform="translate(-91.97613,-105.83225)"
       d="m 904.68312,710.54921 -32.83373,-2.91855 -14.59277,48.15614 c 0,0 -9.167,12.32809 -14.39321,23.87635 a 10.29345,10.29345 0 0 0 10.554,14.43894 c 9.91519,-1.096 21.86864,-3.18147 23.53947,-6.94084 a 159.6961,159.6961 0 0 0 5.83711,-16.78168 l 8.026,5.10747 5.83711,-2.91856 3.64819,-28.4559 c 0,0 6.56675,-7.29638 0.72964,-20.42987 z"
       inkscape:connector-curvature="0"
       style="fill:#2f2e41" />
    <g
       id="g1414">
      <polygon
         points="680.642,617.121 689.398,587.206 661.672,576.991 644.89,642.658 649.998,647.766 "
         id="polygon1263"
         style="fill:#a0616a" />
      <polygon
         points="807.6,617.121 816.355,587.206 788.629,576.991 771.847,642.658 776.955,647.766 "
         id="polygon1265"
         style="fill:#a0616a" />
      <path
         d="m 893.73855,346.45961 -100.69012,18.241 -0.72963,9.4853 -45.96723,311.55559 c 0,0 53.26361,26.99663 87.55662,13.86314 l 13.86313,-215.24336 18.9706,215.24336 c 0,0 43.04867,22.61879 72.23421,-8.026 0,-3e-5 -18.24096,-327.60771 -45.23758,-345.11903 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1267"
         inkscape:connector-curvature="0"
         style="fill:#2f2e41" />
      <circle
         cx="739.3783"
         cy="57.852921"
         r="36.481918"
         id="circle1273"
         style="fill:#a0616a" />
      <path
         d="m 828.80072,192.50589 c 0,0 8.026,21.88915 -2.18892,26.99662 a 99.33568,99.33568 0 0 1 -19.70023,7.29639 l 1.45927,33.56337 36.48193,48.88573 43.04867,-82.44914 c 0,0 -23.34843,6.56674 -26.99663,-45.23759 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1275"
         inkscape:connector-curvature="0"
         style="fill:#a0616a" />
      <path
         d="m 765.32217,358.86346 -8.026,93.39373 c 0,0 -16.05205,55.45252 5.83711,48.88578 21.88916,-6.56674 10.21494,-51.80434 10.21494,-51.80434 l 19.70023,-90.47517 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1277"
         inkscape:connector-curvature="0"
         style="fill:#a0616a" />
      <path
         d="m 842.66385,291.73672 -15.32241,-48.88578 -4.37783,5.10747 c 0,0 -24.409,-11.88526 -3.44886,-25.278 0,0 -46.16655,3.3889 -46.16655,17.98167 0,14.59277 20.42987,59.83035 20.42987,59.83035 0,0 -5.8371,67.12674 -2.18891,67.12674 3.64819,0 100.69011,-19.70024 100.69011,-19.70024 l 2.91855,-34.293 c 0,0 28.4559,-64.20819 20.42988,-74.42313 -8.02602,-10.21494 -36.13656,-16.8918 -38.49816,-14.6478 0,0 15.14973,12.45888 -24.25075,29.97021 l 2.91855,5.83711 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1279"
         inkscape:connector-curvature="0"
         style="fill:#d0cde1" />
      <path
         d="m 776.99639,237.74347 c 0,0 -8.75566,8.026 -8.75566,30.64482 0,22.61882 -5.10747,68.586 -5.10747,68.586 l -8.026,26.267 29.91518,1.45928 8.75566,5.83711 c 0,0 11.67422,-80.98987 13.1335,-83.17879 1.45928,-2.18892 -29.91521,-49.61542 -29.91521,-49.61542 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1281"
         inkscape:connector-curvature="0"
         style="fill:#d0cde1" />
      <path
         d="m 907.60168,237.01383 c 0,0 12.40385,-2.18891 14.59277,18.97061 2.18892,21.15952 3.64819,94.853 3.64819,94.853 0,0 10.21494,5.10747 5.10747,13.86313 -5.10747,8.75566 -10.94458,10.94458 -10.94458,10.94458 l -21.88915,-13.1335 -4.37783,-67.12674 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1283"
         inkscape:connector-curvature="0"
         style="fill:#d0cde1" />
      <path
         d="m 902.49421,361.05238 c 0,0 -31.37446,13.13349 -26.99663,18.9706 4.37783,5.83711 15.32242,-1.45928 15.32242,-1.45928 0,0 11.67422,30.64482 18.241,24.07807 6.56678,-6.56675 10.94458,-32.10409 10.94458,-32.10409 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1285"
         inkscape:connector-curvature="0"
         style="fill:#a0616a" />
      <path
         d="m 897.54208,346.45961 c 0,0 11.69906,-15.68723 28.20824,0 0,0 -17.47314,-7.66121 -28.20824,0 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1287"
         inkscape:connector-curvature="0"
         style="opacity:0.2" />
      <path
         d="m 826.9116,170.46791 c -2.30395,-3.36495 -1.294,-8.04065 -2.943,-11.77055 -2.58934,-5.85711 -10.225,-7.059 -16.61735,-7.44428 -4.249,-0.25611 -8.562,-0.50757 -12.72716,0.34234 a 12.21959,12.21959 0 0 0 -8.67239,6.614 c -0.898,1.91571 -0.80345,-4.0207 -0.3832,-11.64847 a 36.81091,36.81091 0 0 1 27.42517,-33.60608 q 0.13443,-0.035 0.26644,-0.0689 c 7.72355,-1.97987 15.70015,-3.49242 23.63916,-2.75412 7.93901,0.7383 15.91256,3.96452 21.00462,10.1 2.32729,2.80418 4.00562,6.13677 6.59,8.706 4.54069,4.51406 11.147,6.03665 17.22989,8.03486 6.87948,2.25986 13.59067,5.426 18.92914,10.31831 5.33847,4.89231 9.20285,11.67995 9.4874,18.9155 0.33193,8.44016 -4.828,17.28372 -13.44211,19.158 a 9.71918,9.71918 0 0 0 -4.10672,1.89149 c -8.10847,6.60747 1.48064,13.08651 1.59,20.30129 0.0913,6.02023 -6.51421,10.10531 -12.52,10.53158 -11.18554,0.79392 -22.302,-7.60644 -24.5924,-18.58372 -1.026,-4.91757 -0.449,-10.00779 0.0199,-15.00932 0.53674,-5.72521 -12.083,-18.87 -3.72318,-9.21365 a 14.1348,14.1348 0 0 1 3.26323,6.46242 c 1.5423,7.83857 -5.55653,10.6597 -9.96792,15.13062 a 18.72208,18.72208 0 0 0 -4.064,19.37519 c -7.777,-6.32613 -9.85246,-18.6265 -4.58175,-27.15419 1.401,-2.26677 3.22871,-4.25356 4.55335,-6.5658 2.067,-3.608 2.47342,-11.35675 -3.54792,-10.9984 -4.29787,0.2557 -8.67946,3.94506 -12.10921,-1.06414 z"
         transform="translate(-91.97613,-105.83225)"
         id="path1289"
         inkscape:connector-curvature="0"
         style="fill:#2f2e41" />
      <rect
         x="736"
         width="20"
         height="60"
         rx="6.0944901"
         id="rect1291"
         y="0"
         style="fill:#d0cde1" />
      <circle
         cx="746"
         cy="69"
         r="18"
         id="circle1293"
         style="fill:#6c63ff" />
      <circle
         cx="746"
         cy="69"
         r="9"
         id="circle1295"
         style="fill:#d0cde1" />
      <circle
         cx="746"
         cy="69"
         r="4"
         id="circle1297"
         style="fill:#6c63ff" />
    </g>
  </g>
</svg>
</div>
</body>
</html>

If you remove the animation, you can see the prime position of the person, but it changes when it was animated.

Here is the svg:

https://svgshare.com/i/GWL.svg

Activity icon

Started a new Conversation Svg Problem

I'm using illustrations from unDraw.co with inkscape, I moved one object and try to animate it but it gets back to its first position. Am I doing it wrong?

Nov
26
4 months ago
Activity icon

Replied to Error Compiling Sass That Has Svg

Ohh, it works. Thanks!

Activity icon

Replied to Error Compiling Sass That Has Svg

It's still the same.

It stops when I remove this code:

background: url('image/banner.svg') no-repeat 0 0;
Activity icon

Replied to Error Compiling Sass That Has Svg

webpack.mix.js

const mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

 mix
 .js('resources/js/app.js', 'public/js')
 .sass('resources/sass/app.scss', 'public/css');

 mix.webpackConfig({
    node: {
        fs: "empty"
    }
 });

Activity icon

Replied to Error Compiling Sass That Has Svg

It just says "compiled successfully" for a brief second then it'll compile again.

Activity icon

Replied to Error Compiling Sass That Has Svg

Yes, I thought that was the reason; sorry.

Activity icon

Replied to Error Compiling Sass That Has Svg

When the code is there and I run npm run watch, it compiles it and when it is completed, it repeats the compilation even if there's no changes made to the file.

Activity icon

Started a new Conversation Error Compiling Sass That Has Svg

Here's the code that causes problems

background: url('image/banner.svg') no-repeat 0 0;

After compiling, I looked at the compiled css and it turns to this:

background: url(image/banner.svg?6d61e52a8bbe69130e871671f2d704fc) no-repeat 0 0;

How can I fix this?

Nov
24
4 months ago
Activity icon

Replied to Document Expire When Back Is Pressed?

The "fdocument expired" error usually appears when the page you are going back to was generated by submitting a form.

Is that connected to session or cache?

Activity icon

Started a new Conversation Requests

Is it normal for the requests to be visible in the browser's network monitor?

If not, how can I make it hidden?

Nov
23
4 months ago
Activity icon

Started a new Conversation Is There A Way To Create A Record That Has One Or More Than A Level Deep?

I have 3 tables: User, Receipt, and Payment

User has many payment that has one receipt.

Is this possible?

$user->payment()->receipt()->create();
Nov
21
4 months ago
Activity icon

Replied to Are There Any Apis Similar To Speech-api?

@nakov Oh, sorry I forgot that speech api has 2 parts. One of them is the Speech Synthesis, like the one you suggested,which is the TTS and it is supported by most of the browsers. The other one is what I was asking, the Speech Recognition which grabs the voice input from the user, Siri and Alexa are some examples of this technology. As of now, the latter part isn't fully implemented yet by most of the browsers so I'm looking for alternatives.

Nov
20
4 months ago
Activity icon

Replied to Are There Any Apis Similar To Speech-api?

It's only for outputting TTS, it doesn't accept input from the user like SpeechRecognition does.

Activity icon

Started a new Conversation Are There Any Apis Similar To Speech-api?

As of this date, Chrome is the only browser, aside from some mobile browsers, that supports speech-api. Are there any alternatives that is available to most of the browsers?

Activity icon

Started a new Conversation Browser Detection Without Using UserAgent

Is there a way to detect the user's browser without using userAgent?

I've seen this one in stackoverflow

navigator.sayswho= (function(){
    var ua= navigator.userAgent, tem, 
    M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
    if(/trident/i.test(M[1])){
        tem=  /\brv[ :]+(\d+)/g.exec(ua) || [];
        return 'IE '+(tem[1] || '');
    }
    if(M[1]=== 'Chrome'){
        tem= ua.match(/\b(OPR|Edge)\/(\d+)/);
        if(tem!= null) return tem.slice(1).join(' ').replace('OPR', 'Opera');
    }
    M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
    if((tem= ua.match(/version\/(\d+)/i))!= null) M.splice(1, 1, tem[1]);
    return M.join(' ');
})();

console.log(navigator.sayswho);

But it uses userAgent to detect.

Nov
17
4 months ago
Activity icon

Replied to Npm Packages Vulnerability

@bobbybouwmann Nothing. It doesn't do anything.