aurawindsurfing

aurawindsurfing

Laravel Newbie at @

Member Since 3 Years Ago

Dublin, Ireland

Experience Points
190,330
Total
Experience

4,670 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
969
Lessons
Completed
Best Reply Awards
128
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 39
190,330 XP
May
16
2 weeks ago
Apr
14
1 month ago
Activity icon

Replied to Store Timestamp For Reference Without DB

As usual, actually writing the question down solves the question itself ;-)

Answer:

Compare Last-Modified of both remote and downloaded files - if they differ the file was modified...

Activity icon

Started a new Conversation Store Timestamp For Reference Without DB

Hi All,

I have quite big .xml file that I need to parse. I would like to limit my parsing attempts to only when Last-Modified of the file is different from Date stored in my app. Where would you recommend to put it? I would say it makes little sense to put it on a DB only for that one single date.

Would you do a cache? Would you do some sort of systemwide variable stored in the file? Would you put metadata on the file downloaded itself?

Thanks!

Apr
04
1 month ago
Activity icon

Awarded Best Reply on Choosing A New Host - Aws Lightsail Or Another Vps

Hey @longestdrive

If you are having issues sorting out servers then this is really where Forge will totally excel for you. Pay for forge then point it out to either AWS, Digital Ocean, Linode etc and let it take care of the rest.

It has a nice straight forward interface. In regards to the capacity of given VPS, it all depends on traffic your apps receive. Even smallest Digital Ocean will be able to handle quite a few small projects.

Give it a shot, you will love it!

Mar
31
1 month ago
Activity icon

Replied to Cleaner Way To Write This Code?

Hey @hjortur17

I think this is what you could be ultimately looking for:

https://docs.spatie.be/laravel-permission/v3/introduction/

Solves most of the issues that you will come across with roles and permissions.

Hope it helps!

Feb
25
3 months ago
Activity icon

Replied to PHPUnit - How To Make Output Less Verbose

Turns out I had some error_log lines in my seeder that I was using to populate the database.

Thanks!

Activity icon

Started a new Conversation PHPUnit - How To Make Output Less Verbose

Does anyone have idea how to make PHPUnit output less verbose?

Remove the path to PHPUnit at the start of the tests. Remove the Started_at Finished_at info.

My current outputs are:

PHP Storm:

Testing started at 13:54 ...
/usr/local/Cellar/[email protected]/7.2.15/bin/php /Users/user/Sites/ogloszenia/vendor/phpunit/phpunit/phpunit --configuration /Users/user/Sites/ogloszenia/phpunit.xml --teamcity --cache-result-file=/Users/user/Sites/ogloszenia/.phpunit.result.cache
PHPUnit 8.5.2 by Sebastian Bergmann and contributors.

Started at: 
2020-02-25 13:54:15


Finished at: 2020-02-25 13:54:15
Started at: 
2020-02-25 13:54:15


Finished at: 2020-02-25 13:54:15
Started at: 
2020-02-25 13:54:16

VSCode is a bit better but still really dirty:

> Executing task: ./vendor/bin/phpunit <

PHPUnit 8.5.2 by Sebastian Bergmann and contributors.

Started at: 
2020-02-25 14:44:03


Finished at: 2020-02-25 14:44:03
Started at: 
2020-02-25 14:44:03

I assume it is in the way we run the phpunit but could not find good info or was looking in the wrong place.

Thanks!

Feb
19
3 months ago
Activity icon

Replied to What Extensions On VSCode

Hi @dan3460

Here are all of my settings and extensions:

Install this extension first: https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync

Download all of my settings from here: https://gist.github.com/aurawindsurfing/4e1290569244094d6ccd0ea81d9c9177

Hope it helps!

Feb
18
3 months ago
Activity icon

Replied to Cant Deploy Npm Prod With Forge

Hi @smoketm

I assume you know that but did you commit your nnode_modules to your git and pushed it to your server? If so you should ignore them in your git, remove them and run npm install & npm update

This should give you some warnings if there are packages that require a licence.

In general removing node_modules is always a good start.

Hope it helps!

Activity icon

Replied to Auto-update Language Files On Call __()

@sinnbeck would you be more for database vs json storage of translations?

Activity icon

Replied to Auto-update Language Files On Call __()

Hi @jacobson

Something like this should help: https://github.com/stevegrunwell/lost-in-translation#configuration

It would be unwise to autoupdate on every display of every blade file that you have.

Just found them and translate them.

I also started to use poeditor.com for translation of my projects, you can find some nice example here:

https://bigblue-surfcenter.gr/en scroll to very bottom of page and click help translate

This will bring you to the project in poeditor: https://poeditor.com/join/project/oW8TRBFCzH

Now this way people can actually help to translate this site and it is very easy to add another language is you wish.

Hope it helps!

Activity icon

Replied to Format Nova Field Input Before Validation

Should you be creating your slug by hand in first place? Let the model handle it for you while you create/update it.

Activity icon

Replied to Adding Bootstrap Vue + Boostrap 4 To Laravel Non Spa

Is it not that Bootstrap Vue is basically a bootstrap rewritten in Vue? If so then You should not need the Bootstrap 4 at all.

If there is a conflict however you should simply prefix whole bootstrap vue while adding it to your project and then there should be no conflicts.

Feb
17
3 months ago
Activity icon

Replied to How To Access Database Connected Via PHPStorm Tools

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dev_admin
DB_USERNAME=
DB_PASSWORD=

Your host is 127.0.0.1 Your database name is dev_admin You need user You might need password if you have set it up.

There are tons of tutorials how to set up MySQL database out there, google it.

Feb
15
3 months ago
Activity icon

Replied to Sum Last Page And Prev Page Item Laravel

$query = $this->log_book->whereBetween('id', array(0, 17))->orderBy('leg_date','asc');
$sum = $query->sum('time');
$paginated = $query->paginate(18);

something along those lines should work.

Feb
05
3 months ago
Activity icon

Replied to Upload Image And Resize To Digital Ocean Spaces

Hi @maulayyacyber

Have a look at this solution. It works for me much better as it is able to adjust quality to the clients device:

https://laravel-news.com/integrating-cloudinary-to-your-backend-using-a-php-solution.

Hope it helps!

Jan
16
4 months ago
Activity icon

Awarded Best Reply on Vuejs Carousel

I guess she is one of the best persons to ask:

https://css-tricks.com/intro-to-vue-5-animations/

Dec
19
5 months ago
Activity icon

Awarded Best Reply on Proper Way To Run Laravel Queue In Docker

Hey @region23

This solution does not run your Queue Worker in docker. It runs a command from outside of your docker container to run in a docker container called php

I stopped working with docker but the idea will be to run this command from within the container and actually build it with it already set up. Go back to the thread you are referencing and you will see that you answer is voted -3

https://stackoverflow.com/questions/48884802/docker-laravel-queuework

Go for one of the accepted solutions.

Hope it helps!

Dec
10
5 months ago
Activity icon

Replied to Is There A Way To Handle This Race Condition?

Hey @bwrice

This does not make sense:

jobB sets it finalized at column and jobA sees all orders for the group are finalized and dispatches

since finalized_at is only set at the end of the background job there should be no case when jobA sees all orders for the group are finalized when jobA finishes there is still jobB with finalized_at == null therefore it should not have dispatched any notifications.

Another approach would be to simply run a command responsible for dispatching notificatiions every x minutes if some conditions are met.

Hope it helps!

Activity icon

Replied to No Error Reporting, App Hangs In Browser

Ok.

T_DOUBLE_ARROW is the token for =>, so you have one which appears somewhere the parser doesn't expect it.

Google for T_DOUBLE_ARROW and you will find the solution.

If errors still do not show change your App_ENV from production to local this should fix it.

Hope it helps!

Dec
09
5 months ago
Activity icon

Replied to No Error Reporting, App Hangs In Browser

Hey @maparfitt

Have a look at your php.ini maybe you have set up execution time to something crazy and the reason your app does not show any errors is that it is just waiting to time out?

The other thing I would try is to create a simple test route in your web.php routes file and hit that route:

Route::get('/testerror', function () {
    abort(404, "This should show an error page");
});

Hope it helps!

Dec
06
5 months ago
Activity icon

Awarded Best Reply on How To Set Up WordPress With Forge When Using An AWS RDS Database?

Hey @ralphmrivera

Just create an empty site with forge on your server. Then SSH to it and install wordpress:

wget https://wordpress.org/latest.tar.gz
Then unzip the package using:
tar -xzvf latest.tar.gz

https://wordpress.org/support/article/how-to-install-wordpress/

Then change IP od your MySQL server to RDS one.

I still do not understand WHY 😀

Nov
30
6 months ago
Activity icon

Replied to Accessor Is Not Working.

Id me get be reserved somehow. Try doing the same but with different names attribute.