aurawindsurfing

aurawindsurfing

Laravel Newbie at @

Member Since 3 Years Ago

Dublin, Ireland

Experience Points
190,670
Total
Experience

4,330 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
970
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,670 XP
Jul
10
3 days ago
Activity icon

Replied to FormRequest For Update Call

Ok but that changes things. If you hit it in postman does that mean you use api route or just a regular one?

Did you scroll the response? How do you know it is homepage and not error page?

If validation fails, a redirect response will be generated to send the user back to their previous location. The errors will also be flashed to the session so they are available for display. If the request was an AJAX request, a HTTP response with a 422 status code will be returned to the user including a JSON representation of the validation errors.

Activity icon

Replied to FormRequest For Update Call

Hey!

Form request does not redirect anywhere, it is only checking validation rules and returning request back to your controller.

Jul
09
4 days ago
Activity icon

Replied to Display Pdf/ppt

Copy the filepath you are generating in your code and paste it in your browser, if it does not work then probably it is problem with your path and not pdf.

Activity icon

Replied to How To Make Edit Visible Based On Submit Button

When

<div class="col-12">
              <a href ="{{ route('employee_setups.manager_mid_year_review_approve', ['id' => $goalmanager->employee_id])}}" btn btn-primary float-left"><i class="fas fa-check"></i> Submit</a>            
        </div>

is visible? Track this condition and wrap your other code in it:

@if	

<span data-toggle="tooltip"  data-original-title="Click To Update Review Comment">
        <a class="btn btn-xs btn-info" data-toggle="modal" data-target="#edit{{ $goalmanager->id }}" data-original-title="Edit"> 
                                   <i class="fas text-white">Edit {{ trans('global.comment') }}</i>
         </a>
      </span>

@endif

more on this here: https://laravel.com/docs/master/blade#if-statements

Hope it helps!

Activity icon

Replied to Form Request Validation Rule, 10 Or 16 Digits - Use Pipe For Either/or?

Why you do not like regex? It is perfectly fine and you can do really advanced stuff with it.

Here are 2 resources I always go back to:

https://regexone.com/

https://regexr.com/

Enjoy!

Jul
08
5 days ago
Activity icon

Replied to Display Pdf/ppt

Hi @aureliee123

Should be as simple as returning the file in the request or simply putting this on your page:

<a href="file.pdf">Open the pdf!</a>

It is also possible that you made your browser to download files by default. Try other browser just to be sure.

Hope it helps!

Jul
04
1 week ago
Activity icon

Replied to Attempting To Connect To Database

I’m typing into the white box.

Jun
23
2 weeks ago
Activity icon

Replied to Download PDF In Laravel Nova Action

@mauro19 sorry for delay, I do not use any special view for creating invoice. Invoice needs:

  1. Company
  2. Client
  3. Date / Number / Place etc
  4. Items

If you look at it that way your realise you do not need a special view that will look like an invoice... it is just a form at the end of the day.

Hope it helps!

May
16
1 month ago
Apr
14
2 months 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
3 months 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
3 months 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
4 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
4 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
4 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
4 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
4 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
5 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
5 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/